Need assistance counting button presses using IRQ Rising #11575
Unanswered
bfpa40
asked this question in
RP2040 / Pico
Replies: 2 comments
-
You forgot increment your counter ....
Go to Raspberry Pi Pico Interrupts & Button Interfacing Tutorial Using MicroPython - good explanation and examples . |
Beta Was this translation helpful? Give feedback.
0 replies
-
Excellent I had added the global to the count but the articles you sent put me on the right track and I now have it working! Thank You! -Brian- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My question deals with IRQ's and button presses on Miccropython. I am using Micropython on Thonny and a RaspberryPi Pico. I have pin14 setup to react to a rising IRQ upon which time it prints "button pushed". Now how would I have those rising IRQ's caused by a button push increment to a given count and when that count is reached make pin13 high to light an LED? I have pin14 setup and its working I have pin13 setup with a led. But i am new and trying to tie together an IRQ and a Count to make pin13 go high is eluding me. Coffee isnt helping.... Following is what I currently have...
-Brian-
Beta Was this translation helpful? Give feedback.
All reactions