diff --git a/nrf5/main.c b/nrf5/main.c index 5b52975d82..b17c9ea187 100644 --- a/nrf5/main.c +++ b/nrf5/main.c @@ -47,6 +47,7 @@ #include "nrf.h" #include "pin.h" #include "spi.h" +#include "i2c.h" #if MICROPY_PY_MACHINE_PWM #include "pwm.h" #endif @@ -107,6 +108,10 @@ int main(int argc, char **argv) { spi_init0(); #endif +#if MICROPY_PY_MACHINE_HW_I2C + i2c_init0(); +#endif + #if MICROPY_PY_MACHINE_PWM pwm_init0(); #endif