Skip to content

Commit

Permalink
fix #7, setChannel() (#8)
Browse files Browse the repository at this point in the history
- Fix for setChannel(), Thanks to C. Fraser!
- update readme.md
  • Loading branch information
RobTillaart authored Aug 14, 2024
1 parent edab20e commit 34df7a2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()**
Expand Down
7 changes: 4 additions & 3 deletions HC4067.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
// 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



#include "Arduino.h"

#define HC4067_LIB_VERSION (F("0.2.1"))
#define HC4067_LIB_VERSION (F("0.3.0"))


class HC4067
Expand Down Expand Up @@ -58,8 +58,9 @@ class HC4067
// only write changed pins. // AVR only?
if (mask & _changed)
{
digitalWrite(_pins[i--], (mask & _new));
digitalWrite(_pins[i], (mask & _new));
}
i--;
mask >>= 1;
}
enable();
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=HC4067
version=0.2.1
version=0.3.0
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino library for a HC4067 1 x 16 channel multiplexer
Expand Down

0 comments on commit 34df7a2

Please sign in to comment.