Skip to content

Commit 4294ca5

Browse files
author
erik.nyquist
committed
Remove SPI.set* calls from SerialFlash example
These functions are not implemented for A101's SPI library. Remove these calls from examples/CopyFromSerial.ino
1 parent f33e362 commit 4294ca5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libraries/SerialFlash/examples/CopyFromSerial/CopyFromSerial.ino

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,13 @@
7979
#define BYTE_ESCAPE 0x7d
8080
#define BYTE_SEPARATOR 0x7c
8181

82-
83-
//SPI Pins (these are the values on the Audio board; change them if you have different ones)
84-
#define MOSI 7
85-
#define MISO 12
86-
#define SCK 14
8782
#define CSPIN 21
8883

8984
void setup(){
9085
Serial.begin(9600); //Teensy serial is always at full USB speed and buffered... the baud rate here is required but ignored
9186

9287
pinMode(13, OUTPUT);
9388

94-
//Set up SPI
95-
SPI.setMOSI(MOSI);
96-
SPI.setMISO(MISO);
97-
SPI.setSCK(SCK);
9889
SerialFlash.begin(CSPIN);
9990

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

0 commit comments

Comments
 (0)