Skip to content

Wire pins for Adafruit Feather RP2350 with HSTX #2783

@greiman

Description

@greiman

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions