Closed mrmcwethy closed 6 years ago
getColorData() calls read16() which formats the device returned as a 16 bit integer.
return (ret[0] << 8) | ret[1];
The first byte is format as the High byte and the 2nd as the Low byte. The documentation for the device is the exact opposite.
woops, could be! @deanm1278 take a look when ya get back?
@mrmcwethy you're right, this has been fixed: https://github.com/adafruit/Adafruit_APDS9960/commit/4f0ca584f88b7a75a1c08042569214f9cb6b7786 Thanks!
getColorData() calls read16() which formats the device returned as a 16 bit integer.
The first byte is format as the High byte and the 2nd as the Low byte. The documentation for the device is the exact opposite.