Skip to content

Commit 29ed757

Browse files
author
Pete Lewis
committed
SPI example - corrected csPin, and slowed down for consistency
Comment says D10 for cdPin, so just adjusted to match. At clock divide 64, it was missing a few characters here and there. It's still not perfect, but at least it's only hiccuping once in a while at clock div 128.
1 parent 3f68ee6 commit 29ed757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firmware/Examples/SPI/Example1_SPI_Basic/Example1_SPI_Basic.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
#include <SPI.h>
5454

55-
int csPin = 3; //You can use any output pin but for this example we use 10
55+
int csPin = 10; //You can use any output pin but for this example we use 10
5656

5757
int cycles = 0;
5858

@@ -63,7 +63,7 @@ void setup()
6363

6464
SPI.begin(); //Start SPI communication
6565
//SPI.beginTransaction(SPISettings(100000, MSBFIRST, SPI_MODE0));
66-
SPI.setClockDivider(SPI_CLOCK_DIV64); //Slow down the master a bit
66+
SPI.setClockDivider(SPI_CLOCK_DIV128); //Slow down the master a bit
6767
}
6868

6969
void loop()

0 commit comments

Comments
 (0)