Advertisement
viniciusxp

Untitled

Mar 25th, 2023
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. --- a/platforms/chibios/boards/QMK_PM2040/configs/config.h
  2. +++ b/platforms/chibios/boards/QMK_PM2040/configs/config.h
  3. @@ -4,13 +4,13 @@
  4. #pragma once
  5.  
  6. #ifndef I2C_DRIVER
  7. -# define I2C_DRIVER I2CD1
  8. +# define I2C_DRIVER I2CD0
  9. #endif
  10. -#ifndef I2C1_SDA_PIN
  11. -# define I2C1_SDA_PIN D1
  12. +#ifndef I2C0_SDA_PIN
  13. +# define I2C0_SDA_PIN D5
  14. #endif
  15. -#ifndef I2C1_SCL_PIN
  16. -# define I2C1_SCL_PIN D0
  17. +#ifndef I2C0_SCL_PIN
  18. +# define I2C0_SCL_PIN B0
  19. #endif
  20.  
  21. #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET
  22. diff --git a/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h b/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h
  23. index f19f08e93c..eb51e25171 100644
  24. --- a/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h
  25. +++ b/platforms/chibios/boards/QMK_PM2040/configs/mcuconf.h
  26. @@ -95,8 +95,8 @@
  27. /*
  28. * I2C driver system settings.
  29. */
  30. -#define RP_I2C_USE_I2C0 FALSE
  31. -#define RP_I2C_USE_I2C1 TRUE
  32. +#define RP_I2C_USE_I2C0 TRUE
  33. +#define RP_I2C_USE_I2C1 FALSE
  34. #define RP_I2C_BUSY_TIMEOUT 50
  35. #define RP_I2C_ADDRESS_MODE_10BIT FALSE
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement