Initial commit

This is just the 2018 code configured for PlatformIO
This commit is contained in:
jvblanck
2021-06-09 12:10:12 +02:00
commit 4faddf9248
77 changed files with 10334 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#include <RotaryEncoder.h>;
int val = 0;
RotaryEncoder encoder(A0,A2,5,6,3000);
void setup()
{
Serial.begin(57600);
}
void loop()
{
int enc = encoder.readEncoder();
int changevalue = 1;
if(enc != 0) {
val = val + (enc);
val = min(val,4095);
val = max(val,0);
Serial.println(val);
}
delayMicroseconds(5);
}