Skip to content

Instantly share code, notes, and snippets.

View theanswerisnt42's full-sized avatar

theanswerisnt42

View GitHub Profile
@Arty2
Arty2 / rotary_encoder.pde
Created February 22, 2016 03:00
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