Skip to content
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

Print gesture value for proximity and gesture ex #19

Open
wants to merge 1 commit into
base: python
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions example_motion_sensor_proximity_and_gesture_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
This example will switch to `gesture` mode when you move your hand close to the
Motion Sensor Kit and will switch back to `proximity` mode when it recognizes
the gesture "up".

XXX: This example is broken
'''

from communitysdk import list_connected_devices, MotionSensorKit
Expand All @@ -28,7 +26,7 @@ def on_proximity(proximityValue):
print('Swipe your hand above the sensor. Swipe "up" to change to proximity mode.')

def on_gesture(gestureValue):
print('Gesture detected:', gesture)
print('Gesture detected:', gestureValue)
if gestureValue == 'up':
print('Changing now to proximity mode.')
msk.set_mode('proximity')
Expand Down