浏览代码

Use standard pins in examples

main
PaulStoffregen 9 年前
父节点
当前提交
bf84584ebc
共有 5 个文件被更改,包括 9 次插入9 次删除
  1. +2
    -2
      examples/CopyFromSD/CopyFromSD.ino
  2. +2
    -2
      examples/EraseEverything/EraseEverything.ino
  3. +2
    -2
      examples/ListFiles/ListFiles.ino
  4. +2
    -2
      examples/RawHardwareTest/RawHardwareTest.ino
  5. +1
    -1
      library.properties

+ 2
- 2
examples/CopyFromSD/CopyFromSD.ino 查看文件

@@ -7,8 +7,8 @@ const int FlashChipSelect = 6;

void setup() {
//uncomment these if using Teensy audio shield
SPI.setSCK(14); // Audio shield has SCK on pin 14
SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7

// wait up to 10 seconds for Arduino Serial Monitor
unsigned long startMillis = millis();

+ 2
- 2
examples/EraseEverything/EraseEverything.ino 查看文件

@@ -7,8 +7,8 @@ const unsigned long testIncrement = 4096;

void setup() {
//uncomment these if using Teensy audio shield
SPI.setSCK(14); // Audio shield has SCK on pin 14
SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7

// wait up to 10 seconds for Arduino Serial Monitor
unsigned long startMillis = millis();

+ 2
- 2
examples/ListFiles/ListFiles.ino 查看文件

@@ -5,8 +5,8 @@ const int FlashChipSelect = 6;

void setup() {
//uncomment these if using Teensy audio shield
SPI.setSCK(14); // Audio shield has SCK on pin 14
SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7

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

+ 2
- 2
examples/RawHardwareTest/RawHardwareTest.ino 查看文件

@@ -29,8 +29,8 @@ const unsigned long testIncrement = 4096;
void setup() {

//uncomment these if using Teensy audio shield
SPI.setSCK(14); // Audio shield has SCK on pin 14
SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7

while (!Serial) ;
delay(100);

+ 1
- 1
library.properties 查看文件

@@ -1,5 +1,5 @@
name=SerialFlash
version=0.2
version=0.3
author=Paul Stoffregen
maintainer=Paul Stoffregen
sentence=Access SPI Serial Flash memory with filesystem-like functions

正在加载...
取消
保存