From 95b4e8fb91b00113d961680dcfa0dfeacae12b5e Mon Sep 17 00:00:00 2001 From: Renzo Mischianti Date: Wed, 27 Apr 2022 08:25:38 +0200 Subject: [PATCH] Fix double begin and esp32 example --- PCF8574.cpp | 1 - PCF8574.h | 2 +- PCF8574_library.h | 2 +- README.md | 1 + examples/ledEsp32OnTheSecondI2C/ledEsp32OnTheSecondI2C.ino | 2 +- library.properties | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PCF8574.cpp b/PCF8574.cpp index d88619e..eb06e9b 100644 --- a/PCF8574.cpp +++ b/PCF8574.cpp @@ -208,7 +208,6 @@ bool PCF8574::begin(){ #endif DEBUG_PRINTLN( resetInitial, BIN); - _wire->beginTransmission(_address); _wire->write(resetInitial); initialBuffer = writeModeUp | readModePullUp; diff --git a/PCF8574.h b/PCF8574.h index 61d8e5d..efbda2f 100644 --- a/PCF8574.h +++ b/PCF8574.h @@ -2,7 +2,7 @@ * PCF8574 GPIO Port Expand * * AUTHOR: Renzo Mischianti - * VERSION: 2.3.0 + * VERSION: 2.3.1 * * https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/ * diff --git a/PCF8574_library.h b/PCF8574_library.h index 0771b9b..4576cce 100644 --- a/PCF8574_library.h +++ b/PCF8574_library.h @@ -2,7 +2,7 @@ * PCF8574 GPIO Port Expand * * AUTHOR: Renzo Mischianti - * VERSION: 2.3.0 + * VERSION: 2.3.1 * * https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/ * diff --git a/README.md b/README.md index b46c790..2539ae6 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Tutorial: To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder PCF8574. Check that the PCF8574 folder contains `PCF8574\\.cpp` and `PCF8574.h`. Place the DHT library folder your `/libraries/` folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. ## Changelog +26/04/2022: v2.3.1 Fix example for esp32 and double begin. 06/04/2022: v2.3.0 Fix package size 30/12/2021: v2.2.4 Minor fix and remove deprecated declaration 23/11/2020: v2.2.2 Add multiple implementation for encoder management (you can enable by uncomment relative define) diff --git a/examples/ledEsp32OnTheSecondI2C/ledEsp32OnTheSecondI2C.ino b/examples/ledEsp32OnTheSecondI2C/ledEsp32OnTheSecondI2C.ino index 760f2f7..f42e9c5 100644 --- a/examples/ledEsp32OnTheSecondI2C/ledEsp32OnTheSecondI2C.ino +++ b/examples/ledEsp32OnTheSecondI2C/ledEsp32OnTheSecondI2C.ino @@ -44,7 +44,7 @@ void setup() { Serial.begin(112560); - I2Cone.begin(16,17,400000); // SDA pin 16, SCL pin 17, 400kHz frequency + I2Cone.begin(16,17,400000U); // SDA pin 16, SCL pin 17, 400kHz frequency delay(1000); // Set pinMode to OUTPUT diff --git a/library.properties b/library.properties index 83f7004..61351ab 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=PCF8574 library -version=2.3.0 +version=2.3.1 author=Renzo Mischianti maintainer=Renzo Mischianti sentence=PCF8574, library for Arduino, ESP8266, smt32 and esp32