During a recent visit, I heard tell that you folks have some experience writing an interrupt-driven driver for a rotary knob encoder. We will be implementing a rotary knob on our Bitsy-X-based system and I was wondering if I could model our driver on an ADS code sample? Thanks!
The rotary-encoder sample code we have was using a Graphics Master which has two available GPIOs that will trigger on both edges. The algorithm we use requires not only detecting the interrupt but knowing which edge it is. Due to the way the interrupts are connected int the BitsyX, the code would have to be modified quite a bit to disable and re-enable the interrupt lines after each interrupt, essentially toggling the edge the interrupt will trigger on.
We can provide you the Graphics Master code for you as a starting point, but again, it will require a bit of rework for use on other systems.