diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f9cb1a..53443ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.3.9] - 2023-09-23 +- Add Wire1 support for ESP32 +- update readme.md +- minor edits + + ## [0.3.8] - 2023-02-04 - update readme.md - update GitHub actions - update license 2023 - ## [0.3.7] - 2022-11-16 - fix #40 - add interrupt section to readme.md diff --git a/PCF8574.cpp b/PCF8574.cpp index 2cc3e3f..eb6f176 100644 --- a/PCF8574.cpp +++ b/PCF8574.cpp @@ -2,7 +2,7 @@ // FILE: PCF8574.cpp // AUTHOR: Rob Tillaart // DATE: 02-febr-2013 -// VERSION: 0.3.8 +// VERSION: 0.3.9 // PURPOSE: Arduino library for PCF8574 - 8 channel I2C IO expander // URL: https://github.com/RobTillaart/PCF8574 // http://forum.arduino.cc/index.php?topic=184800 @@ -25,7 +25,6 @@ PCF8574::PCF8574(const uint8_t deviceAddress, TwoWire *wire) #if defined (ESP8266) || defined(ESP32) bool PCF8574::begin(int dataPin, int clockPin, uint8_t value) { - _wire = &Wire; if ((dataPin < 255) && (clockPin < 255)) { _wire->begin(dataPin, clockPin); @@ -230,7 +229,7 @@ void PCF8574::select(const uint8_t pin) }; -void PCF8574::selectN(const uint8_t pin) +void PCF8574::selectN(const uint8_t pin) { uint8_t n = 0xFF; if (pin < 8) n = (2 << pin) - 1; diff --git a/PCF8574.h b/PCF8574.h index 4b19ba8..331922d 100644 --- a/PCF8574.h +++ b/PCF8574.h @@ -3,7 +3,7 @@ // FILE: PCF8574.h // AUTHOR: Rob Tillaart // DATE: 02-febr-2013 -// VERSION: 0.3.8 +// VERSION: 0.3.9 // PURPOSE: Arduino library for PCF8574 - 8 channel I2C IO expander // URL: https://github.com/RobTillaart/PCF8574 // http://forum.arduino.cc/index.php?topic=184800 @@ -13,7 +13,7 @@ #include "Wire.h" -#define PCF8574_LIB_VERSION (F("0.3.8")) +#define PCF8574_LIB_VERSION (F("0.3.9")) #ifndef PCF8574_INITIAL_VALUE #define PCF8574_INITIAL_VALUE 0xFF diff --git a/README.md b/README.md index aeae609..bf82b9a 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,11 @@ [![Arduino CI](https://github.com/RobTillaart/PCF8574/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino-lint](https://github.com/RobTillaart/PCF8574/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PCF8574/actions/workflows/arduino-lint.yml) [![JSON check](https://github.com/RobTillaart/PCF8574/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PCF8574/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/PCF8574.svg)](https://github.com/RobTillaart/PCF8574/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PCF8574/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/PCF8574.svg?maxAge=3600)](https://github.com/RobTillaart/PCF8574/releases) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/PCF8574.svg)](https://registry.platformio.org/libraries/robtillaart/PCF8574) # PCF8574 @@ -195,3 +198,11 @@ It is advised to use pull-up or pull-down resistors so the lines have a defined #### Wont +## Support + +If you appreciate my libraries, you can support the development and maintenance. +Improve the quality of the libraries by providing issues and Pull Requests, or +donate through PayPal or GitHub sponsors. + +Thank you, + diff --git a/keywords.txt b/keywords.txt index ceccac6..504e3dd 100644 --- a/keywords.txt +++ b/keywords.txt @@ -40,6 +40,7 @@ selectAll KEYWORD2 # Constants ( LITERAL1) PCF8574_LIB_VERSION LITERAL1 + PCF8574_INITIAL_VALUE LITERAL1 PCF8574_OK LITERAL1 PCF8574_PIN_ERROR LITERAL1 diff --git a/library.json b/library.json index 6e9ce08..b54b8e2 100644 --- a/library.json +++ b/library.json @@ -15,9 +15,9 @@ "type": "git", "url": "https://github.com/RobTillaart/PCF8574.git" }, - "version": "0.3.8", + "version": "0.3.9", "license": "MIT", - "frameworks": "arduino", + "frameworks": "*", "platforms": "*", "headers": "PCF8574.h" } diff --git a/library.properties b/library.properties index 105f334..45b9340 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=PCF8574 -version=0.3.8 +version=0.3.9 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for PCF8574 - 8 channel I2C IO expander