two i2c bus configuration/declaration

Home Forums The libraries hosted on the site PCF8574 i2c digital I/O expander two i2c bus configuration/declaration

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #6792
      Jones
      Participant

        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);

      • #6823
        Renzo Mischianti
        Keymaster

          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

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.
      Exit mobile version