Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
Rotary Encoder¶
Incremental Rotary Encoder based on KY-040 datasheet from Handson Technology: http://www.handsontec.com/dataspecs/switches/Rotary%20Encoder.pdf

Data:
- Operating voltage: 3.3V (changed to suit Mbed)
- Pulses/360° Rotation: 20
- Output: 2-bit gray code
- With built in push button
Connection guide¶
- DT - Pin A (Digital input with Interrupt)
- CLK - Pin B (Digital input)
- SW - Pin SW(Digital input)
- + - 3.3V DC
- GND - GND