Re:Nubsio GPIO API – A Windows USB interface for controlling...
by jononor on Monday April 03, 2017 @10:46AM
(#14023096)
Don't send serial messages in an interrupt, that is crazy. Just set a flag indicating what happened (or use a queue). Then in your main loop check the flag. If the loop is not able to clear it fast enough, report it as an error.
You can handle signals at 100kHz+ with such a technique.
But yes, might very well want some configurable low-pass/debouncing logic.
But yes, might very well want some configurable low-pass/debouncing logic.