Skip to content

Commit 01b2ef7

Browse files
committed
Set proper default pins for SPI
Some boards have different default pins for SPI Thanks @ladyada
1 parent 2b24603 commit 01b2ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/SPI/src/SPI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SPIClass
5151

5252
public:
5353
SPIClass(uint8_t spi_bus=HSPI);
54-
void begin(int8_t sck=-1, int8_t miso=-1, int8_t mosi=-1, int8_t ss=-1);
54+
void begin(int8_t sck=SCK, int8_t miso=MISO, int8_t mosi=MOSI, int8_t ss=-1);
5555
void end();
5656

5757
void setHwCs(bool use);

0 commit comments

Comments
 (0)