simple.
If I open serial monitor after programming (ctrl-alt-m) I see the data,
when the monitor is closed, the Leonardo is barely moving, almost stops.
ctrl-alt-m again, and it’s at full speed… , close the serial monitor, it “stops” …
seems like something related to hardware flow control.
How can I make it ignore DTR(?), and just bitbang the data out ?
This issue have surely been observed by others. I hope for some of the masters here to have a solution.
Anyway the always requested "whole" sketch includes/depends on data from two ADC, needs a DAC an RTC.
so I am posting something that anyone could test:
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));
}
}
On my Leonardo clone the blinking continues at the expected rate regardless of whether the Serial Monitor is open or closed. I'm using 1.6.12 on a MacBook Pro running OS X 10.12.2
This is crazy, but on a Pro Micro (ATmega32U4) The attached code fail every time.
on a Leonardo, the test code above does not fail, but the full code (with more I2c devices) - does fail in the same way as the test on pro micro..