Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmachard/ky040-rotary
KY-040 rotary encoder library for arduino and esp8266 devices
https://github.com/dmachard/ky040-rotary
arduino esp8266 iot
Last synced: 1 day ago
JSON representation
KY-040 rotary encoder library for arduino and esp8266 devices
- Host: GitHub
- URL: https://github.com/dmachard/ky040-rotary
- Owner: dmachard
- License: mit
- Created: 2017-09-17T19:12:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T17:55:31.000Z (6 months ago)
- Last Synced: 2024-05-13T19:06:44.274Z (6 months ago)
- Topics: arduino, esp8266, iot
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 20
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HW-040/KY-040 Rotary Encoder Library
KY-040 rotary encoder library for Arduino and ESP8266 devices.
## Features
- Callback functions on click and rotate events
- Software debouncing
- Interrupts support## Tested on hardware
- Arduino Uno
- Wemos D1 R2## Wiring
The wiring for UNO/ESP8266 can be as follows :
- Vcc --> 3.3V
- GND --> Ground
- SW --> D7
- DT --> D6
- CLK --> D5## Sample code
Read the *.ino file