src/APDS9930.cpp
bool APDS9930::wireReadDataByte(uint8_t reg, uint8_t &val)
{
    
    /* Indicate which register we want to read from */
    if (!wireWriteByte(reg | AUTO_INCREMENT)) {
        return false;
    }
    
    /* Read from register */
    Wire.requestFrom(APDS9930_I2C_ADDR, 1);
    while (Wire.available()) {
        val = Wire.read();
    }

    return true;
}
/**
 * @brief Reads a single byte from the I2C device and specified register
 *
 * @param[in] reg the register to read from
 * @param[out] the value returned from the register
 * @return True if successful read operation. False otherwise.
 */
@brief Reads a single byte from the I2C device and specified register
@param[in] reg the register to read from
@param[out] the value returned from the register
@return True if successful read operation. False otherwise.
@brief Reads a single byte from the I2C device and specified register @param [ in ] reg the register to read from @param [ out ] the value returned from the register @return True if successful read operation . False otherwise .
bool APDS9930::wireReadDataByte(uint8_t reg, uint8_t &val)
{
    if (!wireWriteByte(reg | AUTO_INCREMENT)) {
        return false;
    }
    Wire.requestFrom(APDS9930_I2C_ADDR, 1);
    while (Wire.available()) {
        val = Wire.read();
    }
    return true;
}
bool APDS9930 :: wireReadDataByte ( uint8_t reg , uint8_t & val ) { if ( ! wireWriteByte ( reg | AUTO_INCREMENT ) ) { return false ; } Wire . requestFrom ( APDS9930_I2C_ADDR , 1 ) ; while ( Wire . available ( ) ) { val = Wire . read ( ) ; } return true ; }
@brief Reads a single byte from the I2C device and specified register
 @param[in] reg the register to read from
 @param[out] the value returned from the register
 @return True if successful read operation.
@brief Reads a single byte from the I2C device and specified register @param [ in ] reg the register to read from @param [ out ] the value returned from the register @return True if successful read operation .
/* Indicate which register we want to read from */ /* Read from register */