File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ SRC_C = \
33
33
audio.c \
34
34
sdio.c \
35
35
pybwlan.c \
36
+ i2c.c \
36
37
37
38
SRC_S = \
38
39
startup_stm32f40xx.s \
Original file line number Diff line number Diff line change 37
37
#include "timer.h"
38
38
#include "audio.h"
39
39
#include "pybwlan.h"
40
+ #include "i2c.h"
40
41
41
42
int errno ;
42
43
@@ -877,6 +878,7 @@ int main(void) {
877
878
rt_store_attr (m , qstr_from_str_static ("rand" ), rt_make_function_0 (pyb_rng_get ));
878
879
rt_store_attr (m , qstr_from_str_static ("Led" ), rt_make_function_1 (pyb_Led ));
879
880
rt_store_attr (m , qstr_from_str_static ("Servo" ), rt_make_function_1 (pyb_Servo ));
881
+ rt_store_attr (m , qstr_from_str_static ("I2C" ), rt_make_function_2 (pyb_I2C ));
880
882
rt_store_name (qstr_from_str_static ("pyb" ), m );
881
883
882
884
rt_store_name (qstr_from_str_static ("open" ), rt_make_function_2 (pyb_io_open ));
You can’t perform that action at this time.
0 commit comments