Skip to content

gesture example not working #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jerryneedell opened this issue Sep 13, 2020 · 4 comments · Fixed by #35
Closed

gesture example not working #34

jerryneedell opened this issue Sep 13, 2020 · 4 comments · Fixed by #35

Comments

@jerryneedell
Copy link
Contributor

If I run the example from the code (or ReadtheDocs)

from adafruit_clue import clue

while True:
    print("Gesture: {}".format(clue.gesture))

it just keeps returning 0

FYI - the apds9960_gesture_simpletest works as expected.

@ladyada
Copy link
Member

ladyada commented Sep 13, 2020

hmm we may want to make the simple test a little more advanced where it checks the gesture isnt 0 (which means, none detected) - wnana try that?

@jerryneedell
Copy link
Contributor Author

I tried only reporting if non zero, but then saw nothing.

@jerryneedell
Copy link
Contributor Author

I wonder if the problem is because clue.gesture re_enables gesture every call. Does that “flush”any pending reading. I’ll try to dig deeper later today or tomorrow.

@jerryneedell
Copy link
Contributor Author

simple fix -- "proximity" has to be enabled along with "gesture" -- I'll put is a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants