From dd32f02cc3c5d23acd033fda83e968b1eff3d42f Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 11 Feb 2016 12:43:41 +0000 Subject: esp8266: Add basic I2C driver, with init and writeto methods. Tested and working with SSD1306 I2C display. --- esp8266/modmachine.c | 1 + 1 file changed, 1 insertion(+) (limited to 'esp8266/modmachine.c') diff --git a/esp8266/modmachine.c b/esp8266/modmachine.c index 850008642..1d096a4d5 100644 --- a/esp8266/modmachine.c +++ b/esp8266/modmachine.c @@ -142,6 +142,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&esp_timer_type) }, { MP_ROM_QSTR(MP_QSTR_Pin), MP_ROM_PTR(&pyb_pin_type) }, + { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&pyb_i2c_type) }, }; STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table); -- cgit v1.2.3