Site icon Renzo Mischianti

two i2c bus configuration/declaration

Hi Renzo, Please provide option to choose software wire i2c bus in your declaration, just like option in case of ESP32 i.e. PCF8574 pcf8574(&I2Cone, 0x38); Similar declaration option is required for esp8266, if viable using any suitable software wire bus, preferably slow software i2c library https://github.com/felias-fogg/SlowSoftWire on ESP-12E (ESP8266). sample code:- #include "Arduino.h" #include "PCF8574.h" #include <SlowSoftWire.h> SlowSoftWire Wire1 = SlowSoftWire(4,5); SlowSoftWire Wire2 = SlowSoftWire(6,7); PCF8574 PCFone(&Wire1, 0x38); PCF8574 PCFtwo(&Wire1,0x3E);
Exit mobile version