src/APDS9930.cpp
bool APDS9930::readAmbientLightLux(float &val)
{
    uint16_t Ch0;
    uint16_t Ch1;
    
    /* Read value from channel 0 */
    if( !readCh0Light(Ch0) ) {
        return false;
    }

    /* Read value from channel 1 */
    if( !readCh1Light(Ch1) ) {
        return false;
    }

    val = floatAmbientToLux(Ch0, Ch1);
    return true;
}
/**
 * @brief Reads the ambient (clear) light level as a 16-bit value
 *
 * @param[out] val value of the light sensor.
 * @return True if operation successful. False otherwise.
 */
@brief Reads the ambient (clear) light level as a 16-bit value
@param[out] val value of the light sensor.
@return True if operation successful. False otherwise.
@brief Reads the ambient ( clear ) light level as a 16 - bit value @param [ out ] val value of the light sensor . @return True if operation successful . False otherwise .
bool APDS9930::readAmbientLightLux(float &val)
{
    uint16_t Ch0;
    uint16_t Ch1;
    if( !readCh0Light(Ch0) ) {
        return false;
    }
    if( !readCh1Light(Ch1) ) {
        return false;
    }
    val = floatAmbientToLux(Ch0, Ch1);
    return true;
}
bool APDS9930 :: readAmbientLightLux ( float & val ) { uint16_t Ch0 ; uint16_t Ch1 ; if ( ! readCh0Light ( Ch0 ) ) { return false ; } if ( ! readCh1Light ( Ch1 ) ) { return false ; } val = floatAmbientToLux ( Ch0 , Ch1 ) ; return true ; }
@brief Reads the ambient (clear) light level as a 16-bit value
 @param[out] val value of the light sensor.
@brief Reads the ambient ( clear ) light level as a 16 - bit value @param [ out ] val value of the light sensor .
/* Read value from channel 0 */ /* Read value from channel 1 */