From f44b7486b8e0ecf61ac8da8e9e1031e7afbe78cc Mon Sep 17 00:00:00 2001 From: anschrammh Date: Wed, 29 Oct 2025 23:02:37 +0100 Subject: [PATCH] Cleaned up code formatting --- src/libs/PCF8574/PCF8574.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/libs/PCF8574/PCF8574.h b/src/libs/PCF8574/PCF8574.h index a326a15..21f681a 100644 --- a/src/libs/PCF8574/PCF8574.h +++ b/src/libs/PCF8574/PCF8574.h @@ -13,24 +13,26 @@ class PCF8574 { public: enum Pin{P0 = 1, P1 = 2, P2 = 4, P3 = 8, P4 = 16, P5 = 32, P6 = 64, P7 = 128}; - + PCF8574(uint8_t address, TwoWire &twc = Wire); boolean begin(); void pinMode(Pin pin, boolean mode = INPUT); void digitalWrite(Pin pin, boolean mode); boolean digitalRead(Pin pin); - void digitalReadAll(boolean array[8]); - boolean getPinMode(Pin pin); - void getPinModeAll(boolean array[8]); - void togglePin(Pin pin); - //Reset the IRQ by doing a dummy read - void resetIRQ(); + void digitalReadAll(boolean array[8]); + boolean getPinMode(Pin pin); + void getPinModeAll(boolean array[8]); + void togglePin(Pin pin); + // Reset the IRQ by doing a dummy read + void resetIRQ(); + private: TwoWire &_twc; uint8_t _address; uint8_t _pinConfig; - uint8_t _pddr; - protected: + uint8_t _pddr; + + protected: }; #endif //PCF8574_H