Browse Source

Don't use the SPI alternate pin functions by default

main
PaulStoffregen 7 years ago
parent
commit
86f7ea4c8a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      examples/CopyFromSerial/CopyFromSerial.ino

+ 3
- 3
examples/CopyFromSerial/CopyFromSerial.ino View File

pinMode(13, OUTPUT); pinMode(13, OUTPUT);
//Set up SPI //Set up SPI
SPI.setMOSI(MOSI);
SPI.setMISO(MISO);
SPI.setSCK(SCK);
//SPI.setMOSI(MOSI); // uncomment these if using the alternate pins
//SPI.setMISO(MISO);
//SPI.setSCK(SCK);
SerialFlash.begin(CSPIN); SerialFlash.begin(CSPIN);


//We start by formatting the flash... //We start by formatting the flash...

Loading…
Cancel
Save