From 01b2ef780aa9b44e4134e16e1009f5805240e66f Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sun, 19 Mar 2017 11:14:38 +0200 Subject: [PATCH] Set proper default pins for SPI Some boards have different default pins for SPI Thanks @ladyada --- libraries/SPI/src/SPI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SPI/src/SPI.h b/libraries/SPI/src/SPI.h index 38dde76f..e38fb3ec 100644 --- a/libraries/SPI/src/SPI.h +++ b/libraries/SPI/src/SPI.h @@ -51,7 +51,7 @@ private: public: SPIClass(uint8_t spi_bus=HSPI); - void begin(int8_t sck=-1, int8_t miso=-1, int8_t mosi=-1, int8_t ss=-1); + void begin(int8_t sck=SCK, int8_t miso=MISO, int8_t mosi=MOSI, int8_t ss=-1); void end(); void setHwCs(bool use);