Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created February 10, 2019 20:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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