diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-02-03 15:23:16 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-05 21:43:11 +0200 |
commit | 26f0616e8f228e881e80d21cc4dcea13b838d33b (patch) | |
tree | 09621de5de22e4b61debb64acb3915a4b9ab973d /esp8266/modmachine.c | |
parent | eb247eacd87be049b20349dbefb3c8d445cbfbfd (diff) | |
download | micropython-26f0616e8f228e881e80d21cc4dcea13b838d33b.tar.gz micropython-26f0616e8f228e881e80d21cc4dcea13b838d33b.zip |
esp8266/modmachine: Add Pin class from modpyb.
Diffstat (limited to 'esp8266/modmachine.c')
-rw-r--r-- | esp8266/modmachine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/modmachine.c b/esp8266/modmachine.c index fab55ee69d..f7a799bf01 100644 --- a/esp8266/modmachine.c +++ b/esp8266/modmachine.c @@ -31,6 +31,7 @@ #include "py/runtime.h" #include "extmod/machine_mem.h" #include "utils.h" +#include "modpyb.h" #include "os_type.h" #include "osapi.h" @@ -120,6 +121,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_mem32), MP_ROM_PTR(&machine_mem32_obj) }, { MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&esp_timer_type) }, + { MP_ROM_QSTR(MP_QSTR_Pin), MP_ROM_PTR(&pyb_pin_type) }, }; STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table); |