esp8266: Enable input() builtin.
This commit is contained in:
parent
9b0714b24c
commit
4f811d0e4c
@ -83,6 +83,7 @@ SRC_C = \
|
|||||||
|
|
||||||
STM_SRC_C = $(addprefix stmhal/,\
|
STM_SRC_C = $(addprefix stmhal/,\
|
||||||
pybstdio.c \
|
pybstdio.c \
|
||||||
|
input.c \
|
||||||
)
|
)
|
||||||
|
|
||||||
EXTMOD_SRC_C = $(addprefix extmod/,\
|
EXTMOD_SRC_C = $(addprefix extmod/,\
|
||||||
|
@ -105,6 +105,7 @@ typedef uint32_t sys_prot_t; // for modlwip
|
|||||||
|
|
||||||
// extra built in names to add to the global namespace
|
// extra built in names to add to the global namespace
|
||||||
#define MICROPY_PORT_BUILTINS \
|
#define MICROPY_PORT_BUILTINS \
|
||||||
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
|
||||||
|
|
||||||
// extra built in modules to add to the list of known ones
|
// extra built in modules to add to the list of known ones
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
// qstrs specific to this port
|
// qstrs specific to this port
|
||||||
|
|
||||||
Q(help)
|
Q(help)
|
||||||
|
Q(input)
|
||||||
|
|
||||||
// pyb module
|
// pyb module
|
||||||
Q(pyb)
|
Q(pyb)
|
||||||
|
Loading…
Reference in New Issue
Block a user