Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.