diff --git a/libraries/ADG726/ADG726.h b/libraries/ADG726/ADG726.h index 7f4fa3f0..7062400f 100644 --- a/libraries/ADG726/ADG726.h +++ b/libraries/ADG726/ADG726.h @@ -3,14 +3,14 @@ // FILE: ADG726.h // AUTHOR: Rob Tillaart // DATE: 2023-07-24 -// VERSION: 0.1.0 +// VERSION: 0.1.1 // PURPOSE: Arduino library for ADG726 - 16 to 1 channel (2x) multiplexer // URL: https://github.com/RobTillaart/ADG726 #include "Arduino.h" -#define ADG726_LIB_VERSION (F("0.1.0")) +#define ADG726_LIB_VERSION (F("0.1.1")) #define ADG726_ALLOFF 0x80 @@ -110,7 +110,7 @@ private: uint8_t mask = 0x01; for (int i = 0; i < 4; i++) { - digitalWrite(_addr[i], ((data & mask) > 0)); + digitalWrite(_addr[i], ((data & mask) > 0)); // LSB-first mask <<= 1; } digitalWrite(_EN, HIGH); diff --git a/libraries/ADG726/CHANGELOG.md b/libraries/ADG726/CHANGELOG.md index 87e60134..bba56f8e 100644 --- a/libraries/ADG726/CHANGELOG.md +++ b/libraries/ADG726/CHANGELOG.md @@ -6,5 +6,9 @@ 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-10-16 +- update readme.md (badges) + + ## [0.1.0] - 2023-07-25 - initial version diff --git a/libraries/ADG726/README.md b/libraries/ADG726/README.md index 9e3c2a10..668db71b 100644 --- a/libraries/ADG726/README.md +++ b/libraries/ADG726/README.md @@ -2,8 +2,11 @@ [![Arduino CI](https://github.com/RobTillaart/ADG726/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino-lint](https://github.com/RobTillaart/ADG726/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/ADG726/actions/workflows/arduino-lint.yml) [![JSON check](https://github.com/RobTillaart/ADG726/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/ADG726/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/ADG726.svg)](https://github.com/RobTillaart/ADG726/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/ADG726/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/ADG726.svg?maxAge=3600)](https://github.com/RobTillaart/ADG726/releases) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/ADG726.svg)](https://registry.platformio.org/libraries/robtillaart/ADG726) # ADG726 @@ -16,8 +19,9 @@ Arduino library for ADG726 - 16 to 1 channel (2x) multiplexer. **Experimental** ADG726 is an Arduino class that controls two 16 to 1 multiplexers -over a **parallel** interface. -Only one of the 16 channels can be connected at the same time. +(or 1 to 16) over a **parallel** interface. +The channel selection is disjunct which means that only +one of the 16 channels can be connected (selected) at the same time. The channels can be set per multiplexer or together in one call. The library also support to set them all off (17th state). @@ -56,8 +60,8 @@ Valid values for channel are 0..15. Valid values for channel are 0..15. - **void setChannelB(uint8_t channel)** set the current channel for B only. Valid values for channel are 0..15. -- **uint8_t getChannelA()** get last set channel A == 0..15 or ADG726_ALLOFF. -- **uint8_t getChannelB()** get last set channel B == 0..15 or ADG726_ALLOFF. +- **uint8_t getChannelA()** get last set channel A == 0..15 or ADG726_ALLOFF (128). +- **uint8_t getChannelB()** get last set channel B == 0..15 or ADG726_ALLOFF (128). - **uint8_t channelCount()** returns 16 for ADG726. - **void allOff()** sets all channels to OFF, none selected. @@ -67,7 +71,6 @@ Valid values for channel are 0..15. #### Must - improve documentation - - insert schematic - test with hardware - keep in sync with ADG725 (interface) @@ -82,3 +85,12 @@ Valid values for channel are 0..15. #### 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/ADG726/library.json b/libraries/ADG726/library.json index f619e40e..b7c0e1c2 100644 --- a/libraries/ADG726/library.json +++ b/libraries/ADG726/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/ADG726" }, - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/ADG726/library.properties b/libraries/ADG726/library.properties index 9d9077bf..bce449a2 100644 --- a/libraries/ADG726/library.properties +++ b/libraries/ADG726/library.properties @@ -1,5 +1,5 @@ name=ADG726 -version=0.1.0 +version=0.1.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for ADG726 - 16 to 1 channel (2x) multiplexer.