Skip to content

Commit 26f0616

Browse files
committed
esp8266/modmachine: Add Pin class from modpyb.
1 parent eb247ea commit 26f0616

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

esp8266/modmachine.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "py/runtime.h"
3232
#include "extmod/machine_mem.h"
3333
#include "utils.h"
34+
#include "modpyb.h"
3435

3536
#include "os_type.h"
3637
#include "osapi.h"
@@ -120,6 +121,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
120121
{ MP_ROM_QSTR(MP_QSTR_mem32), MP_ROM_PTR(&machine_mem32_obj) },
121122

122123
{ MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&esp_timer_type) },
124+
{ MP_ROM_QSTR(MP_QSTR_Pin), MP_ROM_PTR(&pyb_pin_type) },
123125
};
124126

125127
STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table);

0 commit comments

Comments
 (0)