Quad Encoder - TeensyUser/doc GitHub Wiki
Hardware Quadrature Library for the Teensy 4.x
The library uses the T4.0 QUAD counters in encoder mode to implement highly efficient and extremely fast quadrature decoders.
Links:
GitHub repository: https://github.com/mjs513/Teensy-4.x-Quad-Encoder-Library