adafruit / Adafruit_APDS9960

Arduino drivers for APDS9960 gesture sensor
Other
37 stars 45 forks source link

gconf1::get() is incorrect. #7

Closed GuyCarver closed 6 years ago

GuyCarver commented 6 years ago

Is: uint8_t get(){ return (GFIFOTH << 7) | (GEXMSK << 5) | GEXPERS; Should be: uint8_t get(){ return (GFIFOTH << 6) | (GEXMSK << 2) | GEXPERS;

ladyada commented 6 years ago

@deanm1278 heya check it? :)

janekm commented 6 years ago

I concur. Looks like a typo from reading the offsets off the datasheet.

deanm1278 commented 6 years ago

fixed!