-->
Page 1 of 1

Arduino Wire library versus ESP8266 version

PostPosted: Tue Jan 17, 2017 2:18 pm
by awardblvr
I did a diff of Wire.[cpp|h] between ESP8266 and default Arduino

Quite a number of differences. But I cannot find any docs on what the differences are.

Contributors are:
Modified December 2014 by Ivan Grokhotkov (ivan@esp8266.com) - esp8266 support
Modified April 2015 by Hrsto Gochkov (ficeto@ficeto.com) - alternative esp8266 support

Does anyone have any basic overview of the differences and what impact they might have on a SW design?


Thanks


(How can I graduate to be a poster on the Arduino forum?)

Re: Arduino Wire library versus ESP8266 version

PostPosted: Wed Jan 18, 2017 3:19 am
by al1fch
HI

No I2C hardware in ESP8266 chip.. So ESP8266 Wire libray is for 'bit banged' I2C. Before using I2C, pins for SDA and SCL need to be set by calling Wire.begin(int sda, int scl), i.e. Wire.begin(0, 2) on ESP-01, else they default to pins 4(SDA) and 5(SCL).

Maybe others differences but with my limited experience with I2C chips on ESP8266 I can't remember other ones with some consequences in SW