Skip to main content
8 events
when toggle format what by license comment
Feb 20, 2018 at 18:03 comment added Trevor_G @Rrz0 I should also mention since it is unclear from your code, you need to debounce both the button press AND the button release. Surprisingly, switches bounce when you let go too.
Feb 20, 2018 at 17:49 comment added Trevor_G @Rrz0 yes you can handle the debounce in the tick-clock interrupt too based on flags from the button interrupt if there is one or by polling the IO line, and flags and variables set from previous state of the tick-clock.
Feb 20, 2018 at 17:45 comment added rrz0 I have started to understand that the method mentioned above is indeed the way to go. Do you suggest I take care of the software debouncing fully inside the interrupt?
Feb 20, 2018 at 17:07 history edited Trevor_G CC BY-SA 3.0
added 92 characters in body
Feb 20, 2018 at 16:55 history edited Trevor_G CC BY-SA 3.0
added 263 characters in body
Feb 20, 2018 at 16:47 history edited Trevor_G CC BY-SA 3.0
added 123 characters in body
Feb 20, 2018 at 16:47 comment added rrz0 Thanks for pointing out the mistake in my code. That is indeed wrong.
Feb 20, 2018 at 16:45 history answered Trevor_G CC BY-SA 3.0