-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Type: BugUSB: CDC serialSerial interface used by MCUs with native USB (e.g. Leonardo) to communicate with the computerSerial interface used by MCUs with native USB (e.g. Leonardo) to communicate with the computer
Description
Try this simple code:(on any leonardo)
I have found Leonardo to fail, and same microcontroller, on a pro micro to work:
unsigned long last;
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
if (millis() - last > 999) {
last = millis();
Serial.println("one second");
digitalWrite(13, !digitalRead(13));
}
}
Observe how LED stops flashing whenever you open/close the terminal
(Ctrl-Shift-M)
To put it simply: if the log target is not ready, (DTR ?) - it all goes
to h*ll
Metadata
Metadata
Assignees
Labels
Type: BugUSB: CDC serialSerial interface used by MCUs with native USB (e.g. Leonardo) to communicate with the computerSerial interface used by MCUs with native USB (e.g. Leonardo) to communicate with the computer