update encoder

This commit is contained in:
hathach committed 2017-09-13 19:05:25 +07:00
1 parent f13e3f6113
commit 97ecc06347
3 files changed
+24 -6

No files matched your search

@@ -26,9 +26,6 @@ void setup()
// Initialize Encoder
encoder.begin();
// Enable hardware debouncing
encoder.setDebounce(false);
// Start encoder
encoder.start();
}
@@ -41,10 +38,10 @@ void loop()
{
if ( value > 0 )
{
Serial.println("Right");
Serial.println("Left");
}else
{
Serial.println("Left");
Serial.println("Right");
}
}
}