|
2 | 2 | * PCF8574 GPIO Port Expand |
3 | 3 | * |
4 | 4 | * AUTHOR: Renzo Mischianti |
5 | | - * VERSION: 2.3.2 |
| 5 | + * VERSION: 2.3.3 |
6 | 6 | * |
7 | 7 | * https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/ |
8 | 8 | * |
@@ -110,17 +110,17 @@ class PCF8574 { |
110 | 110 | PCF8574(uint8_t address, uint8_t interruptPin, void (*interruptFunction)() ); |
111 | 111 |
|
112 | 112 | #if !defined(__AVR) && !defined(ARDUINO_ARCH_SAMD) && !defined(__STM32F1__) && !defined(TEENSYDUINO) |
113 | | - PCF8574(uint8_t address, uint8_t sda, uint8_t scl); |
114 | | - PCF8574(uint8_t address, uint8_t sda, uint8_t scl, uint8_t interruptPin, void (*interruptFunction)()); |
| 113 | + PCF8574(uint8_t address, int sda, int scl); |
| 114 | + PCF8574(uint8_t address, int sda, int scl, uint8_t interruptPin, void (*interruptFunction)()); |
115 | 115 | #endif |
116 | 116 |
|
117 | 117 | #ifdef ESP32 |
118 | 118 | ///// changes for second i2c bus |
119 | 119 | PCF8574(TwoWire *pWire, uint8_t address); |
120 | | - PCF8574(TwoWire *pWire, uint8_t address, uint8_t sda, uint8_t scl); |
| 120 | + PCF8574(TwoWire *pWire, uint8_t address, int sda, int scl); |
121 | 121 |
|
122 | 122 | PCF8574(TwoWire *pWire, uint8_t address, uint8_t interruptPin, void (*interruptFunction)() ); |
123 | | - PCF8574(TwoWire *pWire, uint8_t address, uint8_t sda, uint8_t scl, uint8_t interruptPin, void (*interruptFunction)()); |
| 123 | + PCF8574(TwoWire *pWire, uint8_t address, int sda, int scl, uint8_t interruptPin, void (*interruptFunction)()); |
124 | 124 | #endif |
125 | 125 |
|
126 | 126 | bool begin(); |
@@ -223,8 +223,8 @@ class PCF8574 { |
223 | 223 | # endif |
224 | 224 | #endif |
225 | 225 |
|
226 | | - uint8_t _sda = DEFAULT_SDA; |
227 | | - uint8_t _scl = DEFAULT_SCL; |
| 226 | + int _sda = DEFAULT_SDA; |
| 227 | + int _scl = DEFAULT_SCL; |
228 | 228 |
|
229 | 229 | TwoWire *_wire; |
230 | 230 |
|
|
0 commit comments