Last active
February 10, 2019 20:56
-
-
Save hitherejoe/fd160058ec0e2eef4f595952ec4f73e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GPIO.setup(6, GPIO.IN, GPIO.PUD_DOWN) | |
GPIO.add_event_detect(6, GPIO.RISING, callback=self.toggle_screen_enabled, bouncetime=200) | |
GPIO.setup(21, GPIO.IN, GPIO.PUD_DOWN) | |
GPIO.add_event_detect(21, GPIO.RISING, callback=self.toggle_mic_enabled, bouncetime=200) | |
GPIO.setup(26, GPIO.IN, GPIO.PUD_DOWN) | |
GPIO.add_event_detect(26, GPIO.RISING, callback=self.toggle_braille_enabled, bouncetime=200) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment