src/APDS9930.cpp
bool APDS9930::getLightIntLowThreshold(uint16_t &threshold)
{
    uint8_t val_byte;
    threshold = 0;
    
    /* Read value from ambient light low threshold, low byte register */
    if( !wireReadDataByte(APDS9930_AILTL, val_byte) ) {
        return false;
    }
    threshold = val_byte;
    
    /* Read value from ambient light low threshold, high byte register */
    if( !wireReadDataByte(APDS9930_AILTH, val_byte) ) {
        return false;
    }
    threshold = threshold + ((uint16_t)val_byte << 8);
    
    return true;
}
/**
 * @brief Gets the low threshold for ambient light interrupts
 *
 * @param[out] threshold current low threshold stored on the APDS-9930
 * @return True if operation successful. False otherwise.
 */
@brief Gets the low threshold for ambient light interrupts
@param[out] threshold current low threshold stored on the APDS-9930
@return True if operation successful. False otherwise.
@brief Gets the low threshold for ambient light interrupts @param [ out ] threshold current low threshold stored on the APDS - 9930 @return True if operation successful . False otherwise .
bool APDS9930::getLightIntLowThreshold(uint16_t &threshold)
{
    uint8_t val_byte;
    threshold = 0;
    if( !wireReadDataByte(APDS9930_AILTL, val_byte) ) {
        return false;
    }
    threshold = val_byte;
    if( !wireReadDataByte(APDS9930_AILTH, val_byte) ) {
        return false;
    }
    threshold = threshold + ((uint16_t)val_byte << 8);
    return true;
}
bool APDS9930 :: getLightIntLowThreshold ( uint16_t & threshold ) { uint8_t val_byte ; threshold = 0 ; if ( ! wireReadDataByte ( APDS9930_AILTL , val_byte ) ) { return false ; } threshold = val_byte ; if ( ! wireReadDataByte ( APDS9930_AILTH , val_byte ) ) { return false ; } threshold = threshold + ( ( uint16_t ) val_byte << 8 ) ; return true ; }
@brief Gets the low threshold for ambient light interrupts
 @param[out] threshold current low threshold stored on the APDS-9930
 @return True if operation successful.
@brief Gets the low threshold for ambient light interrupts @param [ out ] threshold current low threshold stored on the APDS - 9930 @return True if operation successful .
/* Read value from ambient light low threshold, low byte register */ /* Read value from ambient light low threshold, high byte register */