Pārlūkot izejas kodu

Add 'Serial.begin()' to examples

main
erik.nyquist pirms 8 gadiem
vecāks
revīzija
875885a985
5 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

Serial.begin(9600);

while (!Serial) ;
delay(100);


Notiek ielāde…
Atcelt
Saglabāt