Skip to content

Commit 96ce48c

Browse files
Theodoros PapathanasiouTheodoros Papathanasiou
Theodoros Papathanasiou
authored and
Theodoros Papathanasiou
committed
Change the default SPI & I2C pins to match pinout docs
1 parent bbc6284 commit 96ce48c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

variants/RASPBERRY_PI_PICO/pins_arduino.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ static const uint8_t A3 = PIN_A3;
4242
#define PIN_SERIAL_RX (1ul)
4343

4444
// SPI
45-
#define PIN_SPI_MISO (4u)
46-
#define PIN_SPI_MOSI (3u)
47-
#define PIN_SPI_SCK (2u)
48-
#define PIN_SPI_SS (5u)
45+
#define PIN_SPI_MISO (16u)
46+
#define PIN_SPI_MOSI (19u)
47+
#define PIN_SPI_SCK (18u)
48+
#define PIN_SPI_SS (17u)
4949

5050
static const uint8_t SS = PIN_SPI_SS; // SPI Slave SS not used. Set here only for reference.
5151
static const uint8_t MOSI = PIN_SPI_MOSI;
5252
static const uint8_t MISO = PIN_SPI_MISO;
5353
static const uint8_t SCK = PIN_SPI_SCK;
5454

5555
// Wire
56-
#define PIN_WIRE_SDA (6u)
57-
#define PIN_WIRE_SCL (7u)
56+
#define PIN_WIRE_SDA (4u)
57+
#define PIN_WIRE_SCL (5u)
5858

5959
#define SERIAL_HOWMANY 1
6060
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))

0 commit comments

Comments
 (0)