Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void setup()
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
; // wait for serial port to connect. Needed for Native USB only
}


Expand Down
4 changes: 2 additions & 2 deletions libraries/CurieTime/examples/ReadTest/ReadTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <CurieTime.h>

void setup() {
while (!Serial);
Serial.begin(9600);
Serial.begin(9600); // initialize Serial communication
while (!Serial); // wait for serial port to connect.

Serial.println("CurieTime Read Test");
Serial.println("-------------------");
Expand Down
4 changes: 2 additions & 2 deletions libraries/CurieTime/examples/SetTime/SetTime.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <CurieTime.h>

void setup() {
while (!Serial);
Serial.begin(9600);
Serial.begin(9600); // initialize Serial communication
while(!Serial) ; // wait for serial port to connect.

// set the current time to 14:27:00, December 14th, 2015
setTime(14, 27, 00, 14, 12, 2015);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const int blinkPin = 13;
void setup(void)
{
CurieTimerOne.initialize(50000);
Serial.begin(9600);
Serial.begin(9600); // initialize Serial communication
while(!Serial) ; // wait for serial port to connect.
}

void loop(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ void timedBlinkIsr() // callback function when interrupt is asserted
void setup() {

#ifdef SERIAL_PORT_LOG_ENABLE
Serial.begin(115200);
while (!Serial); // wait for the serial monitor to open
Serial.begin(115200); // initialize Serial communication
while (!Serial); // wait for the serial monitor to open
#endif

// Initialize pin 13 as an output - onboard LED.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const int dataReadyPin = 6;
const int chipSelectPin = 7;

void setup() {
Serial.begin(9600);
Serial.begin(9600); // initialize Serial communication
while(!Serial) ; // wait for serial port to connect.

// start the SPI library:
SPI.begin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
#define CSPIN 21

void setup(){
Serial.begin(9600); //Teensy serial is always at full USB speed and buffered... the baud rate here is required but ignored
Serial.begin(9600); // initialize Serial communication
while(!Serial) ; // wait for serial port to connect.

pinMode(13, OUTPUT);

Expand Down