adafruit / Adafruit_Si5351_Library

Driver for Adafruit's Si5351 Clockgen Breakout
43 stars 30 forks source link

Example sketch (si5351) does not start serial terminal #19

Open alexudanis opened 2 years ago

alexudanis commented 2 years ago

-Arduino IDE version: 1.8.19

List the steps to reproduce the problem below:

The following fixed the issue: Serial.begin(9600); while (!Serial); //added this in Serial.println("Si5351 Clockgen Test"); Serial.println("");

ladyada commented 2 years ago

feel free to submit a PR and we'll review!

caternuson commented 2 years ago

There's nothing in the loop() for the example sketch. The serial outputs are most likely working, just happening faster than one can manually open the Serial Monitor after the sketch upload. So they get missed and fly off into the ether. Adding while (!Serial); as suggested above is a simple fix.

@alexudanis Want to PR that?