Skip to content

Commit de7f1a7

Browse files
Fixed generic PIN_LED and SPI0 Pin assignment on WIZnet W55RP20-EVB-Pico. (#2956)
* Update pins_arduino.h Changed PIN_LED to match USERLED on PCB. Removed unavailable pins from SPI0 connection. * Update pins_arduino.h Uncommented SPI0 pins and reassigned them over GPIO 2,3,4,5.
1 parent 19b1489 commit de7f1a7

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed
Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
#include "../generic/pins_arduino.h"
1+
#pragma once
2+
3+
// Pin definitions taken from:
4+
// https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf
5+
6+
7+
// LEDs
8+
#define PIN_LED (19u)
9+
10+
// Serial
11+
#define PIN_SERIAL1_TX (0u)
12+
#define PIN_SERIAL1_RX (1u)
13+
14+
#define PIN_SERIAL2_TX (8u)
15+
#define PIN_SERIAL2_RX (9u)
16+
17+
// SPI
18+
// Default SPI0 pins are used internally and are unavailable on this board. To use SPI0 other peripherals must be sacrificed.
19+
#define PIN_SPI0_MISO (2u) // 16u is connected to the buck-boost converted.
20+
#define PIN_SPI0_MOSI (3u) // 19u is connected to USERLED, defined as PIN_LED.
21+
#define PIN_SPI0_SCK (4u) // 18u is connected to a voltage divider on VBUS.
22+
#define PIN_SPI0_SS (5u) // 17u doesn't even show up in the schematics.
23+
24+
#define PIN_SPI1_MISO (12u)
25+
#define PIN_SPI1_MOSI (15u)
26+
#define PIN_SPI1_SCK (14u)
27+
#define PIN_SPI1_SS (13u)
28+
29+
// Wire
30+
#define PIN_WIRE0_SDA (4u)
31+
#define PIN_WIRE0_SCL (5u)
32+
33+
#define PIN_WIRE1_SDA (26u)
34+
#define PIN_WIRE1_SCL (27u)
35+
36+
#define SERIAL_HOWMANY (3u)
37+
#define SPI_HOWMANY (2u)
38+
#define WIRE_HOWMANY (2u)
39+
40+
#include "../generic/common.h"

0 commit comments

Comments
 (0)