diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-13 22:21:44 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-13 22:21:44 +0000 |
commit | 87c6250b4c941cbd7e77e42645ee9a330570622d (patch) | |
tree | b2d73f5b36606fedef9e0f5810222f944c7b250c /esp8266/modpyb.c | |
parent | baafb290ada10c7b8ba0b4b31fb4c5ec8282be88 (diff) |
esp8266: Add basic pyb.Pin class; supports output mode only.
Diffstat (limited to 'esp8266/modpyb.c')
-rw-r--r-- | esp8266/modpyb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/modpyb.c b/esp8266/modpyb.c index 2687803ea..c4eb35d57 100644 --- a/esp8266/modpyb.c +++ b/esp8266/modpyb.c @@ -33,6 +33,7 @@ #include "pyexec.h" #include MICROPY_HAL_H #include "user_interface.h" +#include "modpyb.h" STATIC mp_obj_t pyb_info(mp_uint_t n_args, const mp_obj_t *args) { // print info about memory @@ -156,6 +157,8 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_udelay), (mp_obj_t)&pyb_udelay_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_sync), (mp_obj_t)&pyb_sync_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_hard_reset), (mp_obj_t)&pyb_hard_reset_obj }, + + { MP_OBJ_NEW_QSTR(MP_QSTR_Pin), (mp_obj_t)&pyb_pin_type }, }; STATIC MP_DEFINE_CONST_DICT(pyb_module_globals, pyb_module_globals_table); |