summaryrefslogtreecommitdiff
path: root/esp8266/modmachine.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-02-11 12:43:41 +0000
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-24 11:17:17 +0200
commitdd32f02cc3c5d23acd033fda83e968b1eff3d42f (patch)
treee7c3fbce4b7b397f12b82fd2044059b1a642c4f4 /esp8266/modmachine.c
parent7059c8c23c85f91475a40cf9af2563df144b0f64 (diff)
esp8266: Add basic I2C driver, with init and writeto methods.
Tested and working with SSD1306 I2C display.
Diffstat (limited to 'esp8266/modmachine.c')
-rw-r--r--esp8266/modmachine.c1
1 files changed, 1 insertions, 0 deletions
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);