Skip to content

Instantly share code, notes, and snippets.

View theanswerisnt42's full-sized avatar

theanswerisnt42

View GitHub Profile
@theanswerisnt42
theanswerisnt42 / rotary_encoder.pde
Created September 23, 2020 05:50 — forked from Arty2/rotary_encoder.pde
Reading one Rotary Encoder from a Raspberry Pi with Processing 3
/*
Reading one Rotary Encoder from a Raspberry Pi
Translated from C to Processing by Heracles Papatheodorou
via http://theatticlight.net/posts/Reading-a-Rotary-Encoder-from-a-Raspberry-Pi/
GND MIDDLE encoder leg
GPIO22 GPIO23 LEFT and RIGHT legs
3.3V LEFT and RIGHT, splits to two 10k resistors for pull-up