Skip to content

Commit 16768a4

Browse files
pcf8574: set pins to LOW at startup
1 parent a5bf682 commit 16768a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MultiPlexer_PCF8574/MultiPlexer_PCF8574.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ MultiPlexer_PCF8574::MultiPlexer_PCF8574(uint8_t address, TwoWire* wire) {
88
_expander = new PCF8574(address, wire);
99
}
1010

11-
bool MultiPlexer_PCF8574::begin() {
12-
bool expanderReady = _expander->begin();
11+
bool MultiPlexer_PCF8574::begin(uint8_t value) {
12+
bool expanderReady = _expander->begin(value);
1313
if (!expanderReady) {
1414
Log.warning(F("PCF8574 could not initialize!" CR));
1515
}

MultiPlexer_PCF8574/MultiPlexer_PCF8574.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MultiPlexer_PCF8574
1515
{
1616
public:
1717
MultiPlexer_PCF8574(uint8_t address, TwoWire* wire = &Wire);
18-
bool begin();
18+
bool begin(uint8_t value = LOW);
1919
bool isConnected();
2020
void digitalWrite(uint8_t pin, uint8_t value);
2121
uint8_t digitalRead(uint8_t pin);

0 commit comments

Comments
 (0)