Skip to content

Commit

Permalink
Update HAL_ESP8266.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpittaway committed Feb 14, 2021
1 parent 77957bb commit b4309a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ESPController/src/HAL_ESP8266.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
Expand Down

0 comments on commit b4309a0

Please sign in to comment.