-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix ghost channels when using for OUTPUT - add disable/enable in setChannel() - add HC4053_performance.ino - update readme.md - update GitHub actions - minor edits
- Loading branch information
1 parent
fb8f941
commit aefe47f
Showing
12 changed files
with
117 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# These are supported funding model platforms | ||
|
||
github: RobTillaart | ||
custom: "https://www.paypal.me/robtillaart" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// | ||
// FILE: HC4053_performance.ino | ||
// AUTHOR: Rob Tillaart | ||
// PURPOSE: Demo for HC4053 3 x 2 channel (simple) multiplexer | ||
|
||
|
||
#include "HC4053.h" | ||
|
||
HC4053 mp(4, 5, 6, 8); // enable pin(8) | ||
|
||
uint32_t start, stop; | ||
|
||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
Serial.println(__FILE__); | ||
Serial.print("HC4053 LIBRARY VERSION: "); | ||
Serial.println(HC4053_LIB_VERSION); | ||
Serial.println(); | ||
delay(100); | ||
|
||
mp.setChannel(1); | ||
|
||
for (uint8_t ch = 0; ch < 2; ch ++) | ||
{ | ||
start = micros(); | ||
mp.setChannel(ch); | ||
stop = micros(); | ||
Serial.print("Channel "); | ||
Serial.print(ch); | ||
Serial.print(": \t"); | ||
Serial.println(stop - start); | ||
delay(100); | ||
} | ||
|
||
mp.setChannel(1); | ||
delay(100); | ||
|
||
start = micros(); | ||
mp.setChannel(1); | ||
stop = micros(); | ||
|
||
Serial.print("\nSetChannel: \t"); | ||
Serial.println(stop - start); | ||
delay(100); | ||
|
||
} | ||
|
||
|
||
void loop() | ||
{ | ||
} | ||
|
||
|
||
// -- END OF FILE -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
HC4053_performance.ino | ||
HC4053 LIBRARY VERSION: 0.2.0 | ||
|
||
Channel 0: 24 | ||
Channel 1: 24 | ||
|
||
SetChannel: 12 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name=HC4053 | ||
version=0.1.1 | ||
version=0.2.0 | ||
author=Rob Tillaart <[email protected]> | ||
maintainer=Rob Tillaart <[email protected]> | ||
sentence=Arduino library for a HC4053 3x2 channel multiplexer | ||
sentence=Arduino library for a HC4053 3 x 2 channel multiplexer | ||
paragraph= | ||
category=Sensors | ||
url=https://github.com/RobTillaart/HC4053 | ||
|