APDS9930 icon indicating copy to clipboard operation
APDS9930 copied to clipboard

Usage of Wire library.

Open Koepel opened this issue 7 years ago • 1 comments

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.

Koepel avatar Mar 23 '19 01:03 Koepel

Please send a pull request and I'll review it :)

depau avatar Apr 11 '19 22:04 depau