Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/platforms/chibios/boards/QMK_PM2040/configs/config.h
- +++ b/platforms/chibios/boards/QMK_PM2040/configs/config.h
- @@ -4,13 +4,13 @@
- #pragma once
- #ifndef I2C_DRIVER
- -# define I2C_DRIVER I2CD1
- +# define I2C_DRIVER I2CD0
- #endif
- -#ifndef I2C1_SDA_PIN
- -# define I2C1_SDA_PIN D1
- +#ifndef I2C0_SDA_PIN
- +# define I2C0_SDA_PIN D5
- #endif
- -#ifndef I2C1_SCL_PIN
- -# define I2C1_SCL_PIN D0
- +#ifndef I2C0_SCL_PIN
- +# define I2C0_SCL_PIN B0
- #endif
- #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET
- diff --git a/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h b/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h
- index f19f08e93c..eb51e25171 100644
- --- a/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h
- +++ b/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h
- @@ -95,8 +95,8 @@
- /*
- * I2C driver system settings.
- */
- -#define RP_I2C_USE_I2C0 FALSE
- -#define RP_I2C_USE_I2C1 TRUE
- +#define RP_I2C_USE_I2C0 TRUE
- +#define RP_I2C_USE_I2C1 FALSE
- #define RP_I2C_BUSY_TIMEOUT 50
- #define RP_I2C_ADDRESS_MODE_10BIT FALSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement