adafruit / Adafruit_APDS9960

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

Update Adafruit_APDS9960.cpp #28

Closed mark255bits closed 3 years ago

mark255bits commented 3 years ago

Fixed getProxGain method so it returns the content of the bitfield PGAIN as in the datasheet. Now calling the method getProxGain will return 0, 1, 2 or 3 as in the APDS9960 datasheet. Was tested together with the proximity example.

ladyada commented 3 years ago

thank you :)