Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/nav.py Secret
Created Feb 10, 2019

Embed
What would you like to do?
# chord nav next
GPIO.setup(24, GPIO.IN, GPIO.PUD_DOWN)
GPIO.add_event_detect(24, GPIO.FALLING, callback=self.nav_to_next_chord, bouncetime=500)
# chord nav previous
GPIO.setup(22, GPIO.IN, GPIO.PUD_DOWN)
GPIO.add_event_detect(22, GPIO.FALLING, callback=self.nav_to_previous_chord, bouncetime=500)
# chord nav submit
GPIO.setup(27, GPIO.IN, GPIO.PUD_DOWN)
GPIO.add_event_detect(27, GPIO.FALLING, callback=self.nav_submit_chord, bouncetime=500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.