src/APDS9930.cpp
uint8_t APDS9930::getLEDDrive()
{
    uint8_t val;
    
    /* Read value from CONTROL register */
    if( !wireReadDataByte(APDS9930_CONTROL, val) ) {
        return ERROR;
    }
    
    /* Shift and mask out LED drive bits */
    val = (val >> 6) & 0b00000011;
    
    return val;
}
/**
 * @brief Returns LED drive strength for proximity and ALS
 *
 * Value    LED Current
 *   0        100 mA
 *   1         50 mA
 *   2         25 mA
 *   3         12.5 mA
 *
 * @return the value of the LED drive strength. 0xFF on failure.
 */
@brief Returns LED drive strength for proximity and ALS
Value    LED Current
0        100 mA
1         50 mA
2         25 mA
3         12.5 mA

@return the value of the LED drive strength. 0xFF on failure.
@brief Returns LED drive strength for proximity and ALS Value LED Current 0 100 mA 1 50 mA 2 25 mA 3 12 . 5 mA @return the value of the LED drive strength . 0xFF on failure .
uint8_t APDS9930::getLEDDrive()
{
    uint8_t val;
    if( !wireReadDataByte(APDS9930_CONTROL, val) ) {
        return ERROR;
    }
    val = (val >> 6) & 0b00000011;
    return val;
}
uint8_t APDS9930 :: getLEDDrive ( ) { uint8_t val ; if ( ! wireReadDataByte ( APDS9930_CONTROL , val ) ) { return ERROR ; } val = ( val >> 6 ) & 0b00000011 ; return val ; }
@brief Returns LED drive strength for proximity and ALS
 Value    LED Current
   0        100 mA
   1         50 mA
   2         25 mA
   3         12.5 mA
@brief Returns LED drive strength for proximity and ALS Value LED Current 0 100 mA 1 50 mA 2 25 mA 3 12 . 5 mA
/* Read value from CONTROL register */ /* Shift and mask out LED drive bits */