diff options
| author | Malcolm McKellips <malcolm.mckellips@sparkfun.com> | 2025-05-20 13:23:25 -0600 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-05-22 00:24:02 +1000 |
| commit | 7f6fedef2aeb0234f3c7d35a735ade75b9fdeaf3 (patch) | |
| tree | a294fb13c9afcc087cf04dfc254b1e15303f61c4 | |
| parent | 45cb9b4444a7316a137f9c32942bc6c76f904f01 (diff) | |
rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA: Fix default I2C to use I2C1.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA/mpconfigboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA/mpconfigboard.h b/ports/rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA/mpconfigboard.h index 56071e187..931391d97 100644 --- a/ports/rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA/mpconfigboard.h +++ b/ports/rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA/mpconfigboard.h @@ -24,5 +24,9 @@ int mp_hal_is_pin_reserved(int n); #define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i) +// Set the default I2C to I2C1 on pins 18 and 19 which route to the qwiic connector +#undef PICO_DEFAULT_I2C +#define PICO_DEFAULT_I2C (1) + #define MICROPY_HW_I2C1_SDA (18) #define MICROPY_HW_I2C1_SCL (19) |
