- This topic has 1 reply, 2 voices, and was last updated 4 years, 2 months ago by .
- 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
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display E32 E70 EByte EMail esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Temperature Tutorial Web Server Wemos D1 mini WiFi