From 164806af8d93b88c3a03aae92747a8016a651cea Mon Sep 17 00:00:00 2001 From: Rob Tillaart Date: Mon, 25 Sep 2023 20:46:54 +0200 Subject: [PATCH] 0.1.1 PCA9552 --- libraries/PCA9552/CHANGELOG.md | 5 +++++ libraries/PCA9552/PCA9552.cpp | 3 +-- libraries/PCA9552/PCA9552.h | 6 +++--- libraries/PCA9552/README.md | 19 +++++++++++++++---- libraries/PCA9552/library.json | 4 ++-- libraries/PCA9552/library.properties | 2 +- 6 files changed, 27 insertions(+), 12 deletions(-) diff --git a/libraries/PCA9552/CHANGELOG.md b/libraries/PCA9552/CHANGELOG.md index edb27ce4..752d4f85 100644 --- a/libraries/PCA9552/CHANGELOG.md +++ b/libraries/PCA9552/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.1.1] - 2023-09-25 +- add Wire1 support for ESP32 +- update readme.md + + ## [0.1.0] - 2023-07-17 - initial version - based upon PCA9553 diff --git a/libraries/PCA9552/PCA9552.cpp b/libraries/PCA9552/PCA9552.cpp index ef70934d..b95487e4 100644 --- a/libraries/PCA9552/PCA9552.cpp +++ b/libraries/PCA9552/PCA9552.cpp @@ -2,7 +2,7 @@ // FILE: PCA9552.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-17 -// VERSION: 0.1.0 +// VERSION: 0.1.1 // PURPOSE: Arduino library for for I2C PCA9552 16 channel PWM // URL: https://github.com/RobTillaart/PCA9552 @@ -26,7 +26,6 @@ PCA9552::PCA9552(const uint8_t deviceAddress, TwoWire *wire) #if defined (ESP8266) || defined(ESP32) bool PCA9552::begin(int sda, int scl) { - _wire = &Wire; if ((sda < 255) && (scl < 255)) { _wire->begin(sda, scl); diff --git a/libraries/PCA9552/PCA9552.h b/libraries/PCA9552/PCA9552.h index 9ac9f471..d7a4405e 100644 --- a/libraries/PCA9552/PCA9552.h +++ b/libraries/PCA9552/PCA9552.h @@ -3,7 +3,7 @@ // FILE: PCA9552.h // AUTHOR: Rob Tillaart // DATE: 2023-07-17 -// VERSION: 0.1.0 +// VERSION: 0.1.1 // PUPROSE: Arduino library for for I2C PCA9552 16 channel PWM // URL: https://github.com/RobTillaart/PCA9552 @@ -12,7 +12,7 @@ #include "Wire.h" -#define PCA9552_LIB_VERSION (F("0.1.0")) +#define PCA9552_LIB_VERSION (F("0.1.1")) // REGISTERS @@ -47,7 +47,7 @@ ///////////////////////////////////////////////////// // -// CLASS +// CLASS PCA9552 // class PCA9552 { diff --git a/libraries/PCA9552/README.md b/libraries/PCA9552/README.md index f3fe18c4..b447a5b3 100644 --- a/libraries/PCA9552/README.md +++ b/libraries/PCA9552/README.md @@ -2,8 +2,11 @@ [![Arduino CI](https://github.com/RobTillaart/PCA9552/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino-lint](https://github.com/RobTillaart/PCA9552/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PCA9552/actions/workflows/arduino-lint.yml) [![JSON check](https://github.com/RobTillaart/PCA9552/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PCA9552/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/PCA9552.svg)](https://github.com/RobTillaart/PCA9552/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PCA9552/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/PCA9552.svg?maxAge=3600)](https://github.com/RobTillaart/PCA9552/releases) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/PCA9552.svg)](https://registry.platformio.org/libraries/robtillaart/PCA9552) # PCA9552 @@ -47,10 +50,9 @@ all zeroes, causing the bits to be set HIGH (LED off). - https://github.com/RobTillaart/PCA9553 (4 channel) Follow up series -- https://github.com/RobTillaart/PCA9634 (8 channel) -- https://github.com/RobTillaart/PCA9635 (16 channel) -- https://github.com/RobTillaart/PCA9685_RT (16 channel) - +- https://github.com/RobTillaart/PCA9634 (8 channel) +- https://github.com/RobTillaart/PCA9635 (16 channel) +- https://github.com/RobTillaart/PCA9685_RT (16 channel) ## Interface @@ -195,3 +197,12 @@ These are kept similar to PCA9635 et al error codes. #### 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/PCA9552/library.json b/libraries/PCA9552/library.json index 14900fe0..07a8d634 100644 --- a/libraries/PCA9552/library.json +++ b/libraries/PCA9552/library.json @@ -15,9 +15,9 @@ "type": "git", "url": "https://github.com/RobTillaart/PCA9552.git" }, - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", - "frameworks": "arduino", + "frameworks": "*", "platforms": "*", "headers": "PCA9552.h" } diff --git a/libraries/PCA9552/library.properties b/libraries/PCA9552/library.properties index 900d5ff4..da11b6a6 100644 --- a/libraries/PCA9552/library.properties +++ b/libraries/PCA9552/library.properties @@ -1,5 +1,5 @@ name=PCA9552 -version=0.1.0 +version=0.1.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for PCA9552 I2C LED driver 16 channel