0.3.0 HC4067

This commit is contained in:
Rob Tillaart 2024-08-14 16:29:18 +02:00
parent 3621777c7f
commit a10164e153
5 changed files with 17 additions and 5 deletions

View File

@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.3.0] - 2024-08-14
- Fix for setChannel(), Thanks to C. Fraser!
- update readme.md
----
## [0.2.1] - 2024-05-28
- change return type of **bool setChannel()**
- verify the channel parameter of **bool setChannel()**

View File

@ -3,7 +3,7 @@
// FILE: HC4067.h
// AUTHOR: Rob Tillaart
// DATE: 2023-01-25
// VERSION: 0.2.1
// VERSION: 0.3.0
// PURPOSE: Arduino library for CD74HC4067 1 x 16 channel multiplexer and compatibles.
// URL: https://github.com/RobTillaart/HC4067
@ -11,7 +11,7 @@
#include "Arduino.h"
#define HC4067_LIB_VERSION (F("0.2.1"))
#define HC4067_LIB_VERSION (F("0.3.0"))
class HC4067
@ -58,8 +58,9 @@ public:
// only write changed pins. // AVR only?
if (mask & _changed)
{
digitalWrite(_pins[i--], (mask & _new));
digitalWrite(_pins[i], (mask & _new));
}
i--;
mask >>= 1;
}
enable();

View File

@ -32,6 +32,11 @@ The channel selection is done with four select lines **S0..S3**.
The device can be enabled/disabled by the enable line **E**.
### 0.3.0 breaking change
Version 0.3.0 has a bugfix for **setChannel()** which obsolete all previous versions.
#### Compatibles
Not tested, considered compatible.

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/HC4067.git"
},
"version": "0.2.1",
"version": "0.3.0",
"license": "MIT",
"frameworks": "*",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=HC4067
version=0.2.1
version=0.3.0
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for a HC4067 1 x 16 channel multiplexer