Closed Murugesh-Hobbyist closed 4 months ago
Hi, I'm using below code in esp32 but results as "Failed". Using I2C pins SDA -> 5 & SCL0 -> 6. Checked the address is 0x27 Please help to fix this.
`#include "Arduino.h"
PCF8574 pcf8574(0x27);
void setup() { Serial.begin(115200); if (pcf8574.begin()) Serial.println("OK"); else Serial.println("Failed"); } void loop() {}`
Hi, try a i2c scanner and check your wiring. Bye Renzo
Hi, I'm using below code in esp32 but results as "Failed". Using I2C pins SDA -> 5 & SCL0 -> 6. Checked the address is 0x27 Please help to fix this.
`#include "Arduino.h"
include "PCF8574.h"
PCF8574 pcf8574(0x27);
void setup() { Serial.begin(115200); if (pcf8574.begin()) Serial.println("OK"); else Serial.println("Failed"); } void loop() {}`