MajenkoLibraries / MCP23S17

Arduino library for MCP23S17 IO Expanders
BSD 3-Clause "New" or "Revised" License
45 stars 16 forks source link

MCP23S17 library and Encoder #3

Open Mesihas opened 3 years ago

Mesihas commented 3 years ago

How it would be possible to use this library with a rotary Encoder

I am using an ESP32 and running out of pins. This library has been very useful and simple to use with push buttons but I am having a lot of trouble trying to make rotary encoder to work.

any suggestion or idea would be h.a.

tonton81 commented 3 years ago

SPI is pretty fast, it would depend on your polling rate if you are not using interrupts for the pins. Interrupt would be better especially if your loop has slow code if you wanna catch the encoder signals.