Skip to content

Instantly share code, notes, and snippets.

View toaniel's full-sized avatar
💭
Calibrating the vortex transponder

toaniel toaniel

💭
Calibrating the vortex transponder
View GitHub Profile
@toaniel
toaniel / RotaryEncoder.py
Created August 15, 2019 14:37 — forked from n3rd/RotaryEncoder.py
Raspberry Pi + KY040 Rotary Encoder (+ S/W Volume Control)
#!/usr/local/bin/python
import RPi.GPIO as GPIO
class RotaryEncoder:
DIRECTION_CLOCKWISE = 1
DIRECTION_COUNTERCLOCKWISE = 3
prv_seq = 0