From 32b7e935353bfeaf0fee16d1eb459059aada1294 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 10 Feb 2016 21:26:14 -0800 Subject: [PATCH] stmhal: NUCLEO 401 - Add definitions for I2C2 and I2C3 --- stmhal/boards/STM32F401NUCLEO/mpconfigboard.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stmhal/boards/STM32F401NUCLEO/mpconfigboard.h b/stmhal/boards/STM32F401NUCLEO/mpconfigboard.h index de1b43f6bb..b6483844fc 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)