nrf5: Updating main.c to initialize the i2c machine module if selected.
This commit is contained in:
parent
f529aa9e67
commit
bfc67dd99c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user