Esp8266 Multiple i2c buses with wire or other soft i2c
Posted: Wed Jul 20, 2016 9:04 am
So, as I have found out, the esp8266 i2c solution is purely software, so how am I supposed to enable multiple i2c buses on the esp8266? I tried this like an arduino due would enable with:
Thanks in advance for the help, I've been googling around for forever and I can't find how to do this.....
Code: Select all
to no success......I've also tried thisvoid setup() {
Wire.begin(3,4); // join i2c bus (address optional for master)
Wire1.begin(1,2);
}
Code: Select all
but that shouldn't work right? How would I address each i2c bus? Is there another software i2c library which would work for this? (using arduino ide)void setup() {
Wire.begin(3,4); // join i2c bus (address optional for master)
Wire.begin(1,2);
}
Thanks in advance for the help, I've been googling around for forever and I can't find how to do this.....