Skip to content

Commit ebf7af4

Browse files
authored
Allow overriding RASPBERRY_PI_PICO SPI pins
1 parent 30eacd2 commit ebf7af4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

variants/RASPBERRY_PI_PICO/pins_arduino.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,21 @@ static const uint8_t A3 = PIN_A3;
4242
#define PIN_SERIAL_RX (1ul)
4343

4444
// SPI
45+
#ifndef PIN_SPI_MISO
4546
#define PIN_SPI_MISO (16u)
47+
#endif
48+
49+
#ifndef PIN_SPI_MOSI
4650
#define PIN_SPI_MOSI (19u)
51+
#endif
52+
53+
#ifndef PIN_SPI_SCK
4754
#define PIN_SPI_SCK (18u)
55+
#endif
56+
57+
#ifndef PIN_SPI_SS
4858
#define PIN_SPI_SS (17u)
59+
#endif
4960

5061
static const uint8_t SS = PIN_SPI_SS; // SPI Slave SS not used. Set here only for reference.
5162
static const uint8_t MOSI = PIN_SPI_MOSI;

0 commit comments

Comments
 (0)