Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created February 10, 2019 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/e38f48252c274d3b30113f85985e8e6e to your computer and use it in GitHub Desktop.
Save hitherejoe/e38f48252c274d3b30113f85985e8e6e to your computer and use it in GitHub Desktop.
# 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