Search found 3 matches

by sebbalex
Thu Mar 01, 2018 9:17 am
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 25
Views: 145864

Re: Debouncing with IRQ

Sorry, I overlooked the "if self.sw():" statement in line 35. The code will not work for handling callbacks on the rising and falling edge as is. I'll put a version below that does but it doesn't work very well, due to timing issues. The callback for the rising edge is fired with a very noticable d...
by sebbalex
Sat Feb 24, 2018 10:22 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 25
Views: 145864

Re: Debouncing with IRQ

first thanks for the update! I tried as you mentioned but I can't figure it out why it is not working, even after those change only RISING event is fired.. this is my class instance: [code] v = x #dynamic id in a loop p = machine.Pin(v, machine.Pin.IN, machine.Pin.PULL_UP) sw = DebouncedSwitch(p, pu...
by sebbalex
Fri Feb 23, 2018 6:41 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 25
Views: 145864

Re: Debouncing with IRQ

@SpotlightKid
Thanks for the code, very useful!
The callback is called with only RISING event trigger, is there a chance to get it working with both events
RISING and FALLING ?
thanks a lot