src/APDS9930.cpp
bool APDS9930::wireWriteDataByte(uint8_t reg, uint8_t val)
{
    Wire.beginTransmission(APDS9930_I2C_ADDR);
    Wire.write(reg | AUTO_INCREMENT);
    Wire.write(val);
    if( Wire.endTransmission() != 0 ) {
        return false;
    }

    return true;
}
/**
 * @brief Writes a single byte to the I2C device and specified register
 *
 * @param[in] reg the register in the I2C device to write to
 * @param[in] val the 1-byte value to write to the I2C device
 * @return True if successful write operation. False otherwise.
 */
@brief Writes a single byte to the I2C device and specified register
@param[in] reg the register in the I2C device to write to
@param[in] val the 1-byte value to write to the I2C device
@return True if successful write operation. False otherwise.
@brief Writes a single byte to the I2C device and specified register @param [ in ] reg the register in the I2C device to write to @param [ in ] val the 1 - byte value to write to the I2C device @return True if successful write operation . False otherwise .
bool APDS9930::wireWriteDataByte(uint8_t reg, uint8_t val)
{
    Wire.beginTransmission(APDS9930_I2C_ADDR);
    Wire.write(reg | AUTO_INCREMENT);
    Wire.write(val);
    if( Wire.endTransmission() != 0 ) {
        return false;
    }
    return true;
}
bool APDS9930 :: wireWriteDataByte ( uint8_t reg , uint8_t val ) { Wire . beginTransmission ( APDS9930_I2C_ADDR ) ; Wire . write ( reg | AUTO_INCREMENT ) ; Wire . write ( val ) ; if ( Wire . endTransmission ( ) != 0 ) { return false ; } return true ; }
@brief Writes a single byte to the I2C device and specified register
 @param[in] reg the register in the I2C device to write to
 @param[in] val the 1-byte value to write to the I2C device
 @return True if successful write operation.
@brief Writes a single byte to the I2C device and specified register @param [ in ] reg the register in the I2C device to write to @param [ in ] val the 1 - byte value to write to the I2C device @return True if successful write operation .