Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default SPI & I2C pins to match pinout docs #393

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions variants/RASPBERRY_PI_PICO/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ static const uint8_t A3 = PIN_A3;
#define PIN_SERIAL_RX (1ul)

// SPI
#define PIN_SPI_MISO (4u)
#define PIN_SPI_MOSI (3u)
#define PIN_SPI_SCK (2u)
#define PIN_SPI_SS (5u)
#define PIN_SPI_MISO (16u)
#define PIN_SPI_MOSI (19u)
#define PIN_SPI_SCK (18u)
#define PIN_SPI_SS (17u)

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

// Wire
#define PIN_WIRE_SDA (6u)
#define PIN_WIRE_SCL (7u)
#define PIN_WIRE_SDA (4u)
#define PIN_WIRE_SCL (5u)

#define SERIAL_HOWMANY 1
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))
Expand Down