KY-040 rotary encoder library for Arduino and ESP8266 devices.
- Callback functions on click and rotate events
- Software debouncing
- Interrupts support
- Arduino Uno
- Wemos D1 R2
The wiring for UNO/ESP8266 can be as follows :
- Vcc --> 3.3V
- GND --> Ground
- SW --> D7
- DT --> D6
- CLK --> D5
Read the *.ino file