diff options
author | Dave Hylands <dhylands@gmail.com> | 2016-02-10 21:26:14 -0800 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2016-02-10 21:26:14 -0800 |
commit | 32b7e935353bfeaf0fee16d1eb459059aada1294 (patch) | |
tree | 98bcfb62c73f02060c3d4a6f076905a4eae4bb45 | |
parent | f791e14750d6bdecc6a4c1a380cac67e936d77c8 (diff) |
stmhal: NUCLEO 401 - Add definitions for I2C2 and I2C3
-rw-r--r-- | stmhal/boards/STM32F401NUCLEO/mpconfigboard.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/stmhal/boards/STM32F401NUCLEO/mpconfigboard.h b/stmhal/boards/STM32F401NUCLEO/mpconfigboard.h index de1b43f6b..b6483844f 100644 --- a/stmhal/boards/STM32F401NUCLEO/mpconfigboard.h +++ b/stmhal/boards/STM32F401NUCLEO/mpconfigboard.h @@ -23,8 +23,13 @@ #define MICROPY_HW_UART_REPL_BAUD 115200 // I2C busses -#define MICROPY_HW_I2C1_SCL (pin_B6) -#define MICROPY_HW_I2C1_SDA (pin_B7) +#define MICROPY_HW_I2C1_SCL (pin_B6) // D10 on arduino connector, pin 17 on CN10 +#define MICROPY_HW_I2C1_SDA (pin_B7) // pin 21 on CN7 +#define MICROPY_HW_I2C2_SCL (pin_B10) // D6 on arduino connector, pin 25 on CN10 +#define MICROPY_HW_I2C2_SDA (pin_B3) // D3 on arduino connector, pin 31 on CN10 +#define MICROPY_HW_I2C3_SCL (pin_A8) // D7 on arduino connector, pin 23 on CN10 +#define MICROPY_HW_I2C3_SDA (pin_C9) // pin 1 on CN10 + // USRSW is pulled low. Pressing the button makes the input go high. #define MICROPY_HW_USRSW_PIN (pin_C13) |