commit | dd32f02cc3c5d23acd033fda83e968b1eff3d42f | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Thu Feb 11 12:43:41 2016 +0000 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Thu Mar 24 11:17:17 2016 +0200 |
tree | e7c3fbce4b7b397f12b82fd2044059b1a642c4f4 | |
parent | 7059c8c23c85f91475a40cf9af2563df144b0f64 [diff] [blame] |
esp8266: Add basic I2C driver, with init and writeto methods. Tested and working with SSD1306 I2C display.
diff --git a/esp8266/modpyb.h b/esp8266/modpyb.h index 095bc01..e691805 100644 --- a/esp8266/modpyb.h +++ b/esp8266/modpyb.h
@@ -1,6 +1,7 @@ extern const mp_obj_type_t pyb_pin_type; extern const mp_obj_type_t pyb_adc_type; extern const mp_obj_type_t pyb_rtc_type; +extern const mp_obj_type_t pyb_i2c_type; typedef struct _pyb_pin_obj_t { mp_obj_base_t base;