Explorar el Código

Add 'Serial.begin()' to examples

main
erik.nyquist hace 8 años
padre
commit
875885a985
Se han modificado 5 ficheros con 9 adiciones y 0 borrados
  1. +2
    -0
      examples/CopyFromSD/CopyFromSD.ino
  2. +2
    -0
      examples/EraseEverything/EraseEverything.ino
  3. +2
    -0
      examples/ListFiles/ListFiles.ino
  4. +1
    -0
      examples/MP3Player/MP3Player.ino
  5. +2
    -0
      examples/RawHardwareTest/RawHardwareTest.ino

+ 2
- 0
examples/CopyFromSD/CopyFromSD.ino Ver fichero

@@ -15,6 +15,8 @@ void setup() {
//pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP);

Serial.begin(9600);

// wait up to 10 seconds for Arduino Serial Monitor
unsigned long startMillis = millis();
while (!Serial && (millis() - startMillis < 10000)) ;

+ 2
- 0
examples/EraseEverything/EraseEverything.ino Ver fichero

@@ -17,6 +17,8 @@ void setup() {
//pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP);

Serial.begin(9600);

// wait up to 10 seconds for Arduino Serial Monitor
unsigned long startMillis = millis();
while (!Serial && (millis() - startMillis < 10000)) ;

+ 2
- 0
examples/ListFiles/ListFiles.ino Ver fichero

@@ -13,6 +13,8 @@ void setup() {
//pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP);

Serial.begin(9600);

// wait for Arduino Serial Monitor
while (!Serial) ;
delay(100);

+ 1
- 0
examples/MP3Player/MP3Player.ino Ver fichero

@@ -29,6 +29,7 @@ AudioConnection patchCord3(mixer1, dac1);
#define FLASH_CHIP_SELECT 6

void setup() {
Serial.begin(9600);
AudioMemory(8); //4
delay(2000);


+ 2
- 0
examples/RawHardwareTest/RawHardwareTest.ino Ver fichero

@@ -38,6 +38,8 @@ void setup() {
//pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP);

Serial.begin(9600);

while (!Serial) ;
delay(100);


Cargando…
Cancelar
Guardar