APDS9930
APDS9930 copied to clipboard
Usage of Wire library.
In the file "APDS9930/src/APDS9930.cpp", the function "wireWriteDataBlock()" is not used, but it contains a bug.
The sequence should be: beginTransmission - write - write - write - endTransmission However, instead of writing data, both Wire.beginTransmission() and Wire.write() are called (multiple) times. The extra Wire.beginTransmission() is at the moment in line 1082. That line may be removed.
A similar issue is in the original code from Sparkfun.
Please send a pull request and I'll review it :)