summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-10-11 10:08:41 +0200
committerJonas Smedegaard <dr@jones.dk>2023-10-11 10:08:41 +0200
commit035db63e6f50b3f05fd332b82efec6b6c178444a (patch)
tree0a2b525947e3cc0d09b7fc9aa702505c3588018f
parent01499c553711feab8c1271f774a93c4a23d27eed (diff)
tighten serial handling
-rw-r--r--main.ino10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.ino b/main.ino
index ee926bf..571bfe0 100644
--- a/main.ino
+++ b/main.ino
@@ -35,6 +35,10 @@ EasyButton button_select(BUTTON_PIN_SELECT);
void setup() {
Serial.begin(BAUDRATE);
+ while (!Serial) {
+ ;
+ }
+ Serial.println();
button_move.begin();
button_select.begin();
@@ -52,15 +56,15 @@ void loop() {
}
void onButtonMovePressed() {
- Serial.print("button MOVE clicked");
+ Serial.println("button MOVE clicked");
}
void onButtonMoveLongpressed() {
- Serial.print("button MOVE long-clicked");
+ Serial.println("button MOVE long-clicked");
}
void onButtonSelectPressed() {
- Serial.print("button SELECT clicked");
+ Serial.println("button SELECT clicked");
}
/*