8000 changes to Makefile and main.c to add i2c.c · jpralves/micropython@07590c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07590c2

Browse files
author
Hagen Kaye
committed
changes to Makefile and main.c to add i2c.c
1 parent 6474598 commit 07590c2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

stm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ SRC_C = \
3333
audio.c \
3434
sdio.c \
3535
pybwlan.c \
36+
i2c.c \
3637

3738
SRC_S = \
3839
startup_stm32f40xx.s \

stm/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "timer.h"
3838
#include "audio.h"
3939
#include "pybwlan.h"
40+
#include "i2c.h"
4041

4142
int errno;
4243

@@ -877,6 +878,7 @@ int main(void) {
877878
rt_store_attr(m, qstr_from_str_static("rand"), rt_make_function_0(pyb_rng_get));
878879
rt_store_attr(m, qstr_from_str_static("Led"), rt_make_function_1(pyb_Led));
879880
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));
880882
rt_store_name(qstr_from_str_static("pyb"), m);
881883

882884
rt_store_name(qstr_from_str_static("open"), rt_make_function_2(pyb_io_open));

0 commit comments

Comments
 (0)
0