Browse Source

Use standard pins in examples

main
PaulStoffregen 9 years ago
parent
commit
bf84584ebc
5 changed files with 9 additions and 9 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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

Loading…
Cancel
Save