-
| this behavior is seen on a linux and windows system: i have setup my sketch to create the second USB-CDC port - #include <Adafruit_TinyUSB.h> Adafruit_USBD_CDC USBSer1; void setup() { Serial.begin(115200); const uint32_t start = millis(); while (!Serial && !((millis() - start) > 2000)) yield(); USBSer1.begin(115200); // serial setup done. Serial.println("Hello World on Main Serial"); USBSer1.println("Hello World on second port...."); }and this is kind of working fine. the main CDC port does this fine too... i am open for any kind of help :-) |
Beta Was this translation helpful? Give feedback.
Answered by s-light Jul 16, 2025
Replies: 1 comment
-
// If already enumerated, additional class driver begin() won't take effect // until re-enumeration if (TinyUSBDevice.mounted()) { TinyUSBDevice.detach(); delay(10); TinyUSBDevice.attach(); }use as written in the example sketch... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by s-light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
use as written in the example sketch...