gpio_inputs_-_button_led_control_using_an_interrupt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
gpio_inputs_-_button_led_control_using_an_interrupt [2016/08/09 22:58] – walkeradmin | gpio_inputs_-_button_led_control_using_an_interrupt [2016/08/09 23:00] – walkeradmin | ||
---|---|---|---|
Line 25: | Line 25: | ||
print " | print " | ||
GPIO.output(12, | GPIO.output(12, | ||
- | | + | |
- | | + | # this is where we setup the GPIO input to use the event buttonPressed that was |
- | # to use the event buttonPressed that was | + | # defined previously. bouncetime is a simple |
- | # defined previously. bouncetime is a simp$ | + | GPIO.add_event_detect(11, |
- | # switch debouncer in mS. | + | |
| | ||
GPIO.setup(12, | GPIO.setup(12, |