From b4309a0233436cc9d794e3385cf0b0422ddfeda3 Mon Sep 17 00:00:00 2001 From: Stuart Pittaway <1201909+stuartpittaway@users.noreply.github.com> Date: Sun, 14 Feb 2021 12:53:43 +0000 Subject: [PATCH] Update HAL_ESP8266.cpp --- ESPController/src/HAL_ESP8266.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ESPController/src/HAL_ESP8266.cpp b/ESPController/src/HAL_ESP8266.cpp index 76e13f9..b0a59b1 100644 --- a/ESPController/src/HAL_ESP8266.cpp +++ b/ESPController/src/HAL_ESP8266.cpp @@ -53,7 +53,6 @@ void HAL_ESP8266::ConfigureI2C(void (*ExternalInputInterrupt)(void)) //D5 is interrupt pin from PCF8574 pinMode(PFC_INTERRUPT_PIN, INPUT_PULLUP); - //Default pcf8574 = &pcf8574_0x20; @@ -64,6 +63,10 @@ void HAL_ESP8266::ConfigureI2C(void (*ExternalInputInterrupt)(void)) pcf8574 = &pcf8574_0x38; SERIAL_DEBUG.println(F("PCF8574 at address 0x38")); } + else + { + SERIAL_DEBUG.println(F("PCF8574 at address 0x20")); + } //Make PINs 4-7 INPUTs - the interrupt fires when triggered pcf8574->begin();