Search found 12 matches
- Thu Mar 26, 2020 1:36 am
- Forum: MicroPython pyboard
- Topic: Pin IRQ Debounce Messing with REPL
- Replies: 10
- Views: 7276
Re: Pin IRQ Debounce Messing with REPL
Thanks for replying! I do have some loops. The debounce routine appends switch.value() to a buffer until it is equal to another buffer of all 1's. Delaying 1 ms between switch.value() reads. I then do the same thing but looking for 0's to know the button has been pressed and released. I do limit the...
- Wed Mar 25, 2020 9:19 pm
- Forum: MicroPython pyboard
- Topic: Pin IRQ Debounce Messing with REPL
- Replies: 10
- Views: 7276
Pin IRQ Debounce Messing with REPL
Hello, I have a push button on my board and have written a debounce routine to debounce the button press. The debounce routine is working great. I have a print statement in the debounce routine to show the button debounce has happened and it is working as expected. When I enable the interrupt and pr...