daily_automated

This commit is contained in:
topicchi
2023-03-17 11:59:21 +00:00
parent 252ecca9cf
commit e2f276193e
4496 changed files with 1178007 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include <Chatpad.h>
Chatpad pad;
void print_keys(Chatpad &pad, Chatpad::keycode_t code,
Chatpad::eventtype_t type) {
if (type == Chatpad::Down) {
char a = pad.toAscii(code);
if (a =='\t'){
Serial.println("Pressed right");
}else if(a=='\v'){
Serial.println("Pressed left");
} else if (a != 0){
Serial.print(a);
}
}
}
void setup() {
delay(1000);
Serial.begin(57600);
pad.init(Serial1, print_keys);
}
void loop() {
pad.poll();
}