Modified reference to Leonardo only in the examples
According to #3786 removed the reference to Leonardo only in while(!Serial) of the examples. Changed in in "wait for serial port to connect. Needed for native USB port only"
This commit is contained in:
parent
987b9bf2a8
commit
d775df409f
|
@ -15,7 +15,7 @@ void setup() {
|
|||
//Start serial
|
||||
Serial.begin(9600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect. Needed for Leonardo only
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
|
||||
//Print length of data to run CRC on.
|
||||
|
@ -49,4 +49,4 @@ unsigned long eeprom_crc(void) {
|
|||
crc = ~crc;
|
||||
}
|
||||
return crc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ void setup() {
|
|||
|
||||
Serial.begin(9600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect. Needed for Leonardo only
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
Serial.print("Read float from EEPROM: ");
|
||||
|
||||
|
@ -65,4 +65,4 @@ void secondTest() {
|
|||
|
||||
void loop() {
|
||||
/* Empty loop */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ void setup() {
|
|||
|
||||
Serial.begin(9600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect. Needed for Leonardo only
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
|
||||
float f = 123.456f; //Variable to store in EEPROM.
|
||||
|
@ -55,4 +55,4 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
/* Empty loop */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ void setup() {
|
|||
// initialize serial and wait for port to open:
|
||||
Serial.begin(9600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect. Needed for Leonardo only
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ void setup() {
|
|||
// Open serial communications and wait for port to open:
|
||||
Serial.begin(57600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect. Needed for Leonardo only
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ void setup() {
|
|||
// Open serial communications and wait for port to open:
|
||||
Serial.begin(9600);
|
||||
while (!Serial) {
|
||||
; // wait for serial port to connect. Needed for Leonardo only
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue