Skip to content

Commit f4fec86

Browse files
committed
Add comments
1 parent 0c052b9 commit f4fec86

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libraries/USB/examples/USBVendor/USBVendor.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ void setup() {
164164

165165
USB.onEvent(usbEventCallback);
166166
USB.webUSB(true);
167+
// Set the URL for your WebUSB landing page
167168
USB.webUSBURL("https://docs.espressif.com/projects/arduino-esp32/en/latest/_static/webusb.html");
168169
USB.begin();
169170
}

libraries/USB/examples/USBVendor/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<!-- Based on https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/usb/webusb -->
22

3+
<!--
4+
Example of WebUSB web page to communicate with a USB device.
5+
This can be used as a starting point for your self-hosted WebUSB landing page.
6+
-->
7+
38
<!DOCTYPE html>
49
<html lang="en">
510
<head>

0 commit comments

Comments
 (0)