Teensy 3.2 void setup

Status
Not open for further replies.
Yes, for some ms.

Typical to include something like this before first USB printing:
Code:
	while (!Serial && millis() < 4000 );
	Serial.println("\n" __FILE__ " " __DATE__ " " __TIME__);

millis() will hit at least 300 if not 500 or more depending on the time it takes for the connected 'PC' USB to establish connect to the Teensy and the Serial Monitor program in use.

That code will wait 4 seconds for slow machine or in case SerMon is not already active when connected.

if (!Serial) - if TRUE than printing will likely be lost and go unseen.
 
Status
Not open for further replies.
Back
Top