Fix double begin and esp32 example

This commit is contained in:
Renzo Mischianti 2022-04-27 08:25:38 +02:00
parent 084eaa39b1
commit 95b4e8fb91
6 changed files with 5 additions and 5 deletions

View File

@ -208,7 +208,6 @@ bool PCF8574::begin(){
#endif
DEBUG_PRINTLN( resetInitial, BIN);
_wire->beginTransmission(_address);
_wire->write(resetInitial);
initialBuffer = writeModeUp | readModePullUp;

View File

@ -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/
*

View File

@ -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/
*

View File

@ -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 `<arduinosketchfolder>/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)

View File

@ -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

View File

@ -1,5 +1,5 @@
name=PCF8574 library
version=2.3.0
version=2.3.1
author=Renzo Mischianti <renzo.mischianti@gmail.com>
maintainer=Renzo Mischianti <renzo.mischianti@gmail.com>
sentence=PCF8574, library for Arduino, ESP8266, smt32 and esp32