Skip to content

Commit ba7b4d4

Browse files
committed
add message when connected
1 parent 28a92ea commit ba7b4d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/WebUSB/webusb_serial/webusb_serial.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup()
5050
// wait until device mounted
5151
while( !USBDevice.mounted() ) delay(1);
5252

53-
Serial.println("Adafruit TinyUSB WebUSB example");
53+
Serial.println("TinyUSB WebUSB example");
5454
}
5555

5656
// function to echo to both Serial and WebUSB
@@ -75,4 +75,6 @@ void loop()
7575
void line_state_callback(bool connected)
7676
{
7777
digitalWrite(led_pin, connected);
78+
79+
if ( connected ) usb_web.println("TinyUSB WebUSB example");
7880
}

0 commit comments

Comments
 (0)