Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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