adafruit / Adafruit_CircuitPython_APDS9960

Adafruit Bundle driver for APSD9960 Gesture breakout board
MIT License
11 stars 17 forks source link

Add gesture rotation #25

Closed kattni closed 4 years ago

kattni commented 4 years ago

The APDS9960 is rotated 90 degrees on the CLUE, therefore the gestures are off by 90 degrees.

Add the ability to compensate for sensor rotation by including gesture rotation.

The other capabilities of the sensor are not affected by rotation.

kattni commented 4 years ago

@FoamyGuy Let me know if you'd be interested in taking this on.

FoamyGuy commented 4 years ago

@kattni I'm definitely willing to give it a try. I think I can do it. Do I understand correctly: user will be able to set rotate to 0, 90, 180, or 270. If the rotation is set then the values returned by .gesture() will be manipulated to the desired rotation. i.e. if rotation is 90 and the "real" gesture detected is 1 #UP instead what will get returned is 4 #RIGHT

evaherrada commented 4 years ago

Solved by #26. Closing