Lost pin-change interrupts while doing I²C #16670
-
I'm having a bit of an issue, and I'm not really sure how to proceed. I've created two "drivers". One for tracking the state of a rotary encoder ( When I test this code using a simple Now, the encoder I use is of the types normally found on a CNC pendant. It has 100 steps per revolution and it's easily possible to turn it several times per second. At 4 interrupts per "step" and lets say 2.5 turns per second, that should give me about 1k interrupts/second. So, as long as there's time to service the interrupt at least every 1 ms, I shouldn't loose any.
I'm including all the code, as it's only about 130 lines.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You might want to try hard=True when setting the irq handler. |
Beta Was this translation helpful? Give feedback.
You might want to try hard=True when setting the irq handler.