kbd: now not a kbd anymore
This commit is contained in:
@@ -17,10 +17,6 @@ void setup() {
|
||||
[](uint8_t* data, uint8_t len) {
|
||||
for (int i = 0; i < len; i++) {
|
||||
Serial.printf("%c", data[i]);
|
||||
pc.SendByte(data[i]); // echo
|
||||
if (data[i] == '\r') {
|
||||
pc.SendByte('\n');
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -41,7 +37,7 @@ void loop() {
|
||||
}
|
||||
led_counter += 1;
|
||||
|
||||
checkKbdReset();
|
||||
// checkKbdReset();
|
||||
|
||||
uint8_t mosib;
|
||||
if (strobeOccurred(mosib)) {
|
||||
@@ -52,6 +48,9 @@ void loop() {
|
||||
|
||||
if (Serial.available() > 0) {
|
||||
int c = Serial.read();
|
||||
#if 1
|
||||
pc.SendByte(c);
|
||||
#else
|
||||
if (c == 2) {
|
||||
mode = 0;
|
||||
} else if (c == 3) {
|
||||
@@ -63,5 +62,6 @@ void loop() {
|
||||
pc.SendByte(c);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user