Closed nperozzi closed 4 months ago
I made the modification that we agreed on Thursday 😊:
I think I fixed all the comments 👏
By the way: I pushed some changes above to minimize the diff and just format the files with clang-formatter. In f97932c57bb9442d8df3ebc4e195b703fe0add7a I changed so we in fact use the event_t
type when we should.
Looking forward to merging this branch!
I implemented the queuing system in the rotary-encoder library. 1) queuing interrupts: The ISRs debounce and add interrupts to the interruptQueue[] 2) dequeuing interrupts: The dequeuing_interrupts is called in the main loop. It checks if there are interrupts queued triggers the first one and moves the front of the queue variable. Then it processes the interrupt depending on which one it is.