-
Notifications
You must be signed in to change notification settings - Fork 508
Closed
Description
I think there is a problem with the way Wire pins are defined in the variant file for this board.
Here is the Wire section of the variant file:
// Wire
#define PIN_WIRE0_SDA (2u)
#define PIN_WIRE0_SCL (3u)
#define PIN_WIRE1_SDA (31u) // not pinned out
#define PIN_WIRE1_SCL (31u)
Since __WIRE0_DEVICE is not defined in the variant file, it defaults to i2c0 here. Pins 2 and 3 don't seem to be valid for i2c0.
Probably Wire1 should be i2c1 like other Feather RP2040 boards. Pins 24 and 25 would be an OK choice for Wire1 but Wire1 is not pinned out in many RP2040 variants.
Here is the section for the basic Feather RP2040:
// Wire
#define __WIRE0_DEVICE i2c1
#define PIN_WIRE0_SDA (2u)
#define PIN_WIRE0_SCL (3u)
#define __WIRE1_DEVICE i2c0
#define PIN_WIRE1_SDA (24u)
#define PIN_WIRE1_SCL (25u)
Metadata
Metadata
Assignees
Labels
No labels