- This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › PCF8574 i2c digital I/O expander › two i2c bus configuration/declaration
Tagged: two i2c bus
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);
Hi Jones,
I check and seems that esp8266 have TwoWire and I think I must include in esp8266 implementation.
I try to test.
Bye Renzo
More