Arduino encoder library
Posted in Cockpit build, Programming on October 18th, 2014 by trenck – Comments OffEncoder library is published by pjrc
The code
#include "Encoder.h" Encoder encoder(2, 4); void setup() { attachInterrupt(0, doEncoder, CHANGE); Serial.begin (115200); Serial.println("start"); } void loop(){ // do some stuff here - the joy of interrupts is
…
read more »