src/APDS9930.cpp
uint8_t APDS9930::getProximityDiode()
{
    uint8_t val;
    
    /* Read value from CONTROL register */
    if( !wireReadDataByte(APDS9930_CONTROL, val) ) {
        return ERROR;
    }
    
    /* Shift and mask out PDRIVE bits */
    val = (val >> 4) & 0b00000011;
    
    return val;
}
/**
 * @brief Returns the proximity diode
 *
 * Value    Diode selection
 *   0       Reserved
 *   1       Reserved
 *   2       Use Ch1 diode
 *   3       Reserved
 *
 * @return the selected diode. 0xFF on failure.
 */
@brief Returns the proximity diode
Value    Diode selection
0       Reserved
1       Reserved
2       Use Ch1 diode
3       Reserved

@return the selected diode. 0xFF on failure.
@brief Returns the proximity diode Value Diode selection 0 Reserved 1 Reserved 2 Use Ch1 diode 3 Reserved @return the selected diode . 0xFF on failure .
uint8_t APDS9930::getProximityDiode()
{
    uint8_t val;
    if( !wireReadDataByte(APDS9930_CONTROL, val) ) {
        return ERROR;
    }
    val = (val >> 4) & 0b00000011;
    return val;
}
uint8_t APDS9930 :: getProximityDiode ( ) { uint8_t val ; if ( ! wireReadDataByte ( APDS9930_CONTROL , val ) ) { return ERROR ; } val = ( val >> 4 ) & 0b00000011 ; return val ; }
@brief Returns the proximity diode
 Value    Diode selection
   0       Reserved
   1       Reserved
   2       Use Ch1 diode
   3       Reserved
@brief Returns the proximity diode Value Diode selection 0 Reserved 1 Reserved 2 Use Ch1 diode 3 Reserved
/* Read value from CONTROL register */ /* Shift and mask out PDRIVE bits */