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



void setup() { void setup() {
//uncomment these if using Teensy audio shield //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 // wait up to 10 seconds for Arduino Serial Monitor
unsigned long startMillis = millis(); unsigned long startMillis = millis();

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



void setup() { void setup() {
//uncomment these if using Teensy audio shield //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 // wait up to 10 seconds for Arduino Serial Monitor
unsigned long startMillis = millis(); unsigned long startMillis = millis();

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



void setup() { void setup() {
//uncomment these if using Teensy audio shield //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 // wait for Arduino Serial Monitor
while (!Serial) ; while (!Serial) ;

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

void setup() { void setup() {


//uncomment these if using Teensy audio shield //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) ; while (!Serial) ;
delay(100); delay(100);

+ 1
- 1
library.properties View File

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

Loading…
Cancel
Save