From 85beef8a0f0eb61356eedf102fc18c83aabdad65 Mon Sep 17 00:00:00 2001 From: Rob Tillaart Date: Thu, 21 Sep 2023 21:41:46 +0200 Subject: [PATCH] 0.2.1 AD5144A --- libraries/AD5144A/AD5144A.cpp | 3 +-- libraries/AD5144A/AD5144A.h | 4 ++-- libraries/AD5144A/CHANGELOG.md | 6 ++++++ libraries/AD5144A/README.md | 22 +++++++++++++++++++--- libraries/AD5144A/library.json | 2 +- libraries/AD5144A/library.properties | 2 +- 6 files changed, 30 insertions(+), 9 deletions(-) diff --git a/libraries/AD5144A/AD5144A.cpp b/libraries/AD5144A/AD5144A.cpp index 1ce2ab8a..542c8eb8 100644 --- a/libraries/AD5144A/AD5144A.cpp +++ b/libraries/AD5144A/AD5144A.cpp @@ -1,7 +1,7 @@ // // FILE: AD5144A.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.2.0 +// VERSION: 0.2.1 // PURPOSE: I2C digital potentiometer AD5144A // DATE: 2021-04-30 // URL: https://github.com/RobTillaart/AD5144A @@ -31,7 +31,6 @@ AD51XX::AD51XX(const uint8_t address, TwoWire *wire) #if defined (ESP8266) || defined(ESP32) bool AD51XX::begin(int dataPin, int clockPin, bool doReset) { - _wire = &Wire; if ((dataPin < 255) && (clockPin < 255)) { _wire->begin(dataPin, clockPin); diff --git a/libraries/AD5144A/AD5144A.h b/libraries/AD5144A/AD5144A.h index e7ce0481..4f4e1616 100644 --- a/libraries/AD5144A/AD5144A.h +++ b/libraries/AD5144A/AD5144A.h @@ -2,7 +2,7 @@ // // FILE: AD5144A.h // AUTHOR: Rob Tillaart -// VERSION: 0.2.0 +// VERSION: 0.2.1 // PURPOSE: I2C digital PotentioMeter AD5144A // DATE: 2021-04-30 // URL: https://github.com/RobTillaart/AD5144A @@ -14,7 +14,7 @@ #include "Wire.h" -#define AD51XXA_VERSION (F("0.2.0")) +#define AD51XXA_VERSION (F("0.2.1")) #define AD51XXA_OK 0 diff --git a/libraries/AD5144A/CHANGELOG.md b/libraries/AD5144A/CHANGELOG.md index 3884b99f..4651e88b 100644 --- a/libraries/AD5144A/CHANGELOG.md +++ b/libraries/AD5144A/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.2.0] - 2023-01-11 +- add support for Wire1 for ESP32 +- update readme.md +- minor edits + + ## [0.2.0] - 2023-01-11 - update GitHub actions - update license diff --git a/libraries/AD5144A/README.md b/libraries/AD5144A/README.md index 7cf5909c..a8d89d05 100644 --- a/libraries/AD5144A/README.md +++ b/libraries/AD5144A/README.md @@ -2,8 +2,11 @@ [![Arduino CI](https://github.com/RobTillaart/AD5144A/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino-lint](https://github.com/RobTillaart/AD5144A/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/AD5144A/actions/workflows/arduino-lint.yml) [![JSON check](https://github.com/RobTillaart/AD5144A/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/AD5144A/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/AD5144A.svg)](https://github.com/RobTillaart/AD5144A/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/AD5144A/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/AD5144A.svg?maxAge=3600)](https://github.com/RobTillaart/AD5144A/releases) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/AD5144A.svg)](https://registry.platformio.org/libraries/robtillaart/AD5144A) # AD5144A @@ -228,15 +231,15 @@ The examples show the basic working of the functions. ## Future -#### must +#### Must - update documentation -#### should +#### Should - more testing with hardware. -#### could +#### Could - some functions can be performance optimized - writing a value is not needed if last value is the same? @@ -244,6 +247,19 @@ The examples show the basic working of the functions. - flag cacheOn + cacheDirty or so? - improve unit testing CI - **stereo**, write one value to two channels. + + +#### Wont (unless requested) + - SPI based version of the library (if requested) +## 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/AD5144A/library.json b/libraries/AD5144A/library.json index e3fd1287..68a3837d 100644 --- a/libraries/AD5144A/library.json +++ b/libraries/AD5144A/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/AD5144A.git" }, - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "frameworks": "arduino", "platforms": "*", diff --git a/libraries/AD5144A/library.properties b/libraries/AD5144A/library.properties index c3f946cf..26b8def6 100644 --- a/libraries/AD5144A/library.properties +++ b/libraries/AD5144A/library.properties @@ -1,5 +1,5 @@ name=AD5144A -version=0.2.0 +version=0.2.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino Library for AD5144A 4 Channel digital potentiometer.