아두이노 첫걸음 17 Rotary encoder

// Incremental encoder KY-040 int CLK = 3 ; int DT = 4 ; int SW = 5 ; int count = 0; int currentCLK; int previousCLK; void setup() { pinMode (CLK,INPUT); pinMode (DT,INPUT); pinMode (SW, INPUT_PULLUP) ; Serial.begin (9600); previousCLK = digitalRead(CLK); } void...