adafruit / Adafruit_APDS9960

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

added proximityDataReady function #49

Closed Twilightdonkey closed 2 months ago

Twilightdonkey commented 2 months ago

It seems to me that this feature is missing; when you want to read proximity values continuously without asserting the interrupts. The data at PDATA is not valid between reading and the next update cycle, so reading PVALID should ensure that it is valid (according to the datasheet)

I have added a similar function to colorDataReady(), completing the interface.

Twilightdonkey commented 2 months ago

In hindsight, I'm not 100% whether or not this is really necessary in order to read proximity