浏览代码

Add 'Serial.begin()' to examples

main
erik.nyquist 8 年前
父节点
当前提交
875885a985
共有 5 个文件被更改,包括 9 次插入0 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

Serial.begin(9600);

while (!Serial) ;
delay(100);


正在加载...
取消
保存