diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-22 18:32:06 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-22 18:32:06 +0200 |
commit | ccdcf5001c47820c41e9b962d8498602870289b5 (patch) | |
tree | 92c5fc878931e0a792975340f06a12bb6d4585a9 /main/config.def.h | |
parent | d6440954806d381dae5b3df65b43192f897018c6 (diff) |
WIP RP2040 I2C workaround code
Diffstat (limited to 'main/config.def.h')
-rw-r--r-- | main/config.def.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/main/config.def.h b/main/config.def.h index 0dae608..b3be5ed 100644 --- a/main/config.def.h +++ b/main/config.def.h @@ -72,13 +72,21 @@ * \name I2C configuration * \{ */ -#ifndef CFG_SDA_PIN -//! I2C SDA pin -#define CFG_SDA_PIN 16 +#ifndef CFG_SDA0_PIN +//! I2C 0 SDA pin +#define CFG_SDA0_PIN 16 #endif -#ifndef CFG_SCL_PIN -//! I2C SCL pin -#define CFG_SCL_PIN 17 +#ifndef CFG_SCL0_PIN +//! I2C 0 SCL pin +#define CFG_SCL0_PIN 17 +#endif +#ifndef CFG_SDA1_PIN +//! I2C 1 SDA pin +#define CFG_SDA1_PIN 18 +#endif +#ifndef CFG_SCL1_PIN +//! I2C 1 SCL pin +#define CFG_SCL1_PIN 19 #endif /// \} |