Great idea, really cleans up event-loop code!
Was wondering if the following ideas might improve it a little?
volatile T (for interrupt handlers)
- replace
msSinceLastAssign by msLastChange?
(I guess my main use-case so far is just switch debouncing in software though.)
Great idea, really cleans up event-loop code!
Was wondering if the following ideas might improve it a little?
volatile T(for interrupt handlers)msSinceLastAssignbymsLastChange?(I guess my main use-case so far is just switch debouncing in software though.)