Add CesarSound code.

This commit is contained in:
mattbk
2024-01-26 10:26:49 -06:00
parent b2345cf54e
commit 1cda782316
10 changed files with 624 additions and 375 deletions

View File

@ -0,0 +1,25 @@
/*
Rotary Encoder - Polling Example
The circuit:
* encoder pin A to Arduino pin 2
* encoder pin B to Arduino pin 3
* encoder ground pin to ground (GND)
*/
#include <Rotary.h>
Rotary r = Rotary(2, 3);
void setup() {
Serial.begin(9600);
r.begin(true);
}
void loop() {
unsigned char result = r.process();
if (result) {
Serial.println(result == DIR_CW ? "Right" : "Left");
}
}