From e86d69f9469da26dfd421c00796ca00a7d948f46 Mon Sep 17 00:00:00 2001 From: Rob Tillaart Date: Sat, 23 Sep 2023 17:22:26 +0200 Subject: [PATCH] 0.3.9 PCF8574 --- libraries/PCF8574/CHANGELOG.md | 7 ++++++- libraries/PCF8574/PCF8574.cpp | 5 ++--- libraries/PCF8574/PCF8574.h | 4 ++-- libraries/PCF8574/README.md | 11 +++++++++++ libraries/PCF8574/keywords.txt | 1 + libraries/PCF8574/library.json | 4 ++-- libraries/PCF8574/library.properties | 2 +- 7 files changed, 25 insertions(+), 9 deletions(-) diff --git a/libraries/PCF8574/CHANGELOG.md b/libraries/PCF8574/CHANGELOG.md index 1f9cb1aa..53443ce1 100644 --- a/libraries/PCF8574/CHANGELOG.md +++ b/libraries/PCF8574/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/libraries/PCF8574/PCF8574.cpp b/libraries/PCF8574/PCF8574.cpp index 2cc3e3f3..eb6f176e 100644 --- a/libraries/PCF8574/PCF8574.cpp +++ b/libraries/PCF8574/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/libraries/PCF8574/PCF8574.h b/libraries/PCF8574/PCF8574.h index 4b19ba83..331922d6 100644 --- a/libraries/PCF8574/PCF8574.h +++ b/libraries/PCF8574/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/libraries/PCF8574/README.md b/libraries/PCF8574/README.md index aeae6090..bf82b9af 100644 --- a/libraries/PCF8574/README.md +++ b/libraries/PCF8574/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/libraries/PCF8574/keywords.txt b/libraries/PCF8574/keywords.txt index ceccac6b..504e3dd3 100644 --- a/libraries/PCF8574/keywords.txt +++ b/libraries/PCF8574/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/libraries/PCF8574/library.json b/libraries/PCF8574/library.json index 6e9ce08f..b54b8e2b 100644 --- a/libraries/PCF8574/library.json +++ b/libraries/PCF8574/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/libraries/PCF8574/library.properties b/libraries/PCF8574/library.properties index 105f3342..45b93406 100644 --- a/libraries/PCF8574/library.properties +++ b/libraries/PCF8574/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