Browse Source

Add 'Serial.begin()' to examples

main
erik.nyquist 8 years ago
parent
commit
875885a985
5 changed files with 9 additions and 0 deletions
  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 View File

//pinMode(4, INPUT_PULLUP); //pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP); //pinMode(10, INPUT_PULLUP);


Serial.begin(9600);

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

+ 2
- 0
examples/EraseEverything/EraseEverything.ino View File

//pinMode(4, INPUT_PULLUP); //pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP); //pinMode(10, INPUT_PULLUP);


Serial.begin(9600);

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

+ 2
- 0
examples/ListFiles/ListFiles.ino View File

//pinMode(4, INPUT_PULLUP); //pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP); //pinMode(10, INPUT_PULLUP);


Serial.begin(9600);

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

+ 1
- 0
examples/MP3Player/MP3Player.ino View File

#define FLASH_CHIP_SELECT 6 #define FLASH_CHIP_SELECT 6


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



+ 2
- 0
examples/RawHardwareTest/RawHardwareTest.ino View File

//pinMode(4, INPUT_PULLUP); //pinMode(4, INPUT_PULLUP);
//pinMode(10, INPUT_PULLUP); //pinMode(10, INPUT_PULLUP);


Serial.begin(9600);

while (!Serial) ; while (!Serial) ;
delay(100); delay(100);



Loading…
Cancel
Save