src/APDS9930.cpp
uint8_t APDS9930::getProximityInt()
{
    uint8_t val;
    
    /* Read value from STATUS register */
    if( !wireReadDataByte(APDS9930_STATUS, val) ) {
        return ERROR;
    }
    
    /* Shift and mask out PINT bit */
    val = (val >> 5) & 0b00000001;
    
    return val;
}
/**
 * @brief Gets if proximity interrupt is asserted or not
 *
 * @return 1 if interrupt is asserted, 0 if not. 0xFF on error.
 */
@brief Gets if proximity interrupt is asserted or not
@return 1 if interrupt is asserted, 0 if not. 0xFF on error.
@brief Gets if proximity interrupt is asserted or not @return 1 if interrupt is asserted 0 if not . 0xFF on error .
uint8_t APDS9930::getProximityInt()
{
    uint8_t val;
    if( !wireReadDataByte(APDS9930_STATUS, val) ) {
        return ERROR;
    }
    val = (val >> 5) & 0b00000001;
    return val;
}
uint8_t APDS9930 :: getProximityInt ( ) { uint8_t val ; if ( ! wireReadDataByte ( APDS9930_STATUS , val ) ) { return ERROR ; } val = ( val >> 5 ) & 0b00000001 ; return val ; }
@brief Gets if proximity interrupt is asserted or not
 @return 1 if interrupt is asserted, 0 if not.
@brief Gets if proximity interrupt is asserted or not @return 1 if interrupt is asserted 0 if not .
/* Read value from STATUS register */ /* Shift and mask out PINT bit */