Skip to content

Commit cac9eb0

Browse files
BREAKING: Swap Wire1 and Wire in Adafruit Feather (#1468)
Fixes #1465 The Adafruit Feather came onboard before the Wire swapping was supported in the core, so it's backwards from the real definition. Now that swapping is supported, fix it to match the rest of the boards.
1 parent 3b4fb29 commit cac9eb0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

variants/adafruit_feather/pins_arduino.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
#define PIN_SPI1_SS (31u)
3131

3232
// Wire
33-
#define PIN_WIRE0_SDA (24u)
34-
#define PIN_WIRE0_SCL (25u)
35-
#define PIN_WIRE1_SDA (2u)
36-
#define PIN_WIRE1_SCL (3u)
33+
#define __WIRE0_DEVICE i2c1
34+
#define PIN_WIRE0_SDA (2u)
35+
#define PIN_WIRE0_SCL (3u)
36+
#define __WIRE1_DEVICE i2c0
37+
#define PIN_WIRE1_SDA (24u)
38+
#define PIN_WIRE1_SCL (25u)
3739

3840
#define SERIAL_HOWMANY (2u)
3941
#define SPI_HOWMANY (1u)

0 commit comments

Comments
 (0)