add while for serial connection to all examples for nrf52840 native usb

This commit is contained in:
hathach committed 2018-10-30 00:48:45 +07:00
1 parent e79a1f0547
commit 5580249807
54 files changed
+83 -18

No files matched your search

@@ -23,6 +23,8 @@ SwRotaryEncoder swEncoder;
void setup()
{
Serial.begin(115200);
while ( !Serial ) delay(10); // for nrf52840 with native usb
Serial.println("Bluefruit52 SW Rotary Encoder Polling Example");
Serial.println("---------------------------------------------\n");