diff options
author | Jonas Smedegaard <dr@jones.dk> | 2023-10-11 10:08:41 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2023-10-11 10:08:41 +0200 |
commit | 035db63e6f50b3f05fd332b82efec6b6c178444a (patch) | |
tree | 0a2b525947e3cc0d09b7fc9aa702505c3588018f | |
parent | 01499c553711feab8c1271f774a93c4a23d27eed (diff) |
tighten serial handling
-rw-r--r-- | main.ino | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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"); } /* |