8000 Fix Wire/Wire1 definitions for Xaio RP2350 (#2811) · Santroller/arduino-pico@3d17a56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d17a56

Browse files
Fix Wire/Wire1 definitions for Xaio RP2350 (earlephilhower#2811)
Fixes earlephilhower#2808
1 parent 3cb5c31 commit 3d17a56

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

variants/seeed_xiao_rp2350/pins_arduino.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,17 @@ static const uint8_t D18 = (9u);
5353

5454

5555
// Wire
56-
#define PIN_WIRE1_SDA (16u)
57-
#define PIN_WIRE1_SCL (17u)
56+
#define __WIRE0_DEVICE (i2c0)
57+
#define PIN_WIRE0_SDA (16u)
58+
#define PIN_WIRE0_SCL (17u)
59+
#define SDA PIN_WIRE0_SDA
60+
#define SCL PIN_WIRE0_SCL
61+
#define I2C_SDA (SDA)
62+
#define I2C_SCL (SCL)
63+
64+
#define __WIRE1_DEVICE (i2c1)
65+
#define PIN_WIRE1_SDA (6u)
66+
#define PIN_WIRE1_SCL (7u)
5867

5968
#define SERIAL_HOWMANY (3u)
6069
#define SPI_HOWMANY (2u)
@@ -66,10 +75,3 @@ static const uint8_t MISO = PIN_SPI0_MISO;
6675
static const uint8_t SCK = PIN_SPI0_SCK;
6776
static const uint8_t SS = PIN_SPI0_SS;
6877

69-
#define __WIRE0_DEVICE (i2c1)
70-
#define PIN_WIRE0_SDA (6u)
71-
#define PIN_WIRE0_SCL (7u)
72-
#define SDA PIN_WIRE0_SDA
73-
#define SCL PIN_WIRE0_SCL
74-
#define I2C_SDA (SDA)
75-
#define I2C_SCL (SCL)

0 commit comments

Comments
 (0)
0