Re:A closer look at Raspberry Pi RP2040 Programmable IOs
by MatthiasWandel on Tuesday February 16, 2021 @08:01PM
(#26161228)
Had not thought of that. But that will give me one count per bar that goes past the encoder, yet there are four transitions that could potentially be counted. Of course, the pulses are not precisely symmetrical, so the four sub-counts are potentially not the same size.
Example for the ESP32: https://github.com/espressif/esp-idf/tree/73db142/examples/p...
I would not be surprised if you don't need PIO for this on this chip.