test delays
parent
e342d6f684
commit
a6d9ad9817
|
@ -26,7 +26,7 @@
|
|||
#define KBD_I2C_ADDR 0x21
|
||||
|
||||
// Used by keyboard and encoder switch
|
||||
#define DEBOUNCE_MS 10
|
||||
#define DEBOUNCE_MS 5
|
||||
|
||||
// --- Z axis motor
|
||||
|
||||
|
|
|
@ -62,6 +62,16 @@ void loop() {
|
|||
demo_moveBy(-80000);
|
||||
} else if (digit == 5) {
|
||||
demo_moveBy(80000);
|
||||
} else if (digit == 7) {
|
||||
auto micros1 = micros();
|
||||
// 0.1ms
|
||||
// Serial.println("Hello, world!");
|
||||
// 13.2ms
|
||||
// lcd.print("Hello, world!");
|
||||
// 0.5ms
|
||||
// auto key = handleKeyboard();
|
||||
auto micros2 = micros();
|
||||
Serial.println(micros2 - micros1);
|
||||
} else {
|
||||
tick();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue