File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,23 @@ Adafruit TinyUSB Arduino Support
2525Examples are provided in the Adafruit_TinyUSB_Arduino for the more
2626advanced USB stack.
2727
28- Please note that this stack requires sketches to manually call
28+ To use Serial with TinyUSB, you must include the TinyUSB header in your
29+ sketch to avoid a compile error.
30+
31+ .. code :: cpp
32+
33+ #include <Adafruit_TinyUSB.h>
34+
35+ If you need to be compatible with the
36+ other USB stack, you can use an ifdef:
37+
38+ .. code :: cpp
39+
40+ #ifdef USE_TINYUSB
41+ #include <Adafruit_TinyUSB.h>
42+ #endif
43+
44+ Also, this stack requires sketches to manually call
2945``Serial.begin(115200) `` to enable the USB serial port and automatic
3046sketch upload from the IDE. If a sketch is run without this command
3147in ``setup() ``, the user will need to use the standard "hold BOOTSEL
You can’t perform that action at this time.
0 commit comments