-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
171 additions
and
26 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
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,19 @@ | ||
...\PCF8574_performance.ino | ||
PCF8574_LIB_VERSION: 0.3.5 | ||
1 | ||
100000 | ||
Read: 236 | ||
Write: 240 | ||
200000 | ||
Read: 132 | ||
Write: 140 | ||
300000 | ||
Read: 104 | ||
Write: 108 | ||
400000 | ||
Read: 96 | ||
Write: 96 | ||
500000 | ||
Read: 92 | ||
Write: 92 | ||
600 |
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,64 @@ | ||
// | ||
// FILE: PCF8574_select.ino | ||
// AUTHOR: Rob Tillaart | ||
// DATE: 2022-06-18 | ||
// PUPROSE: demo PCF8574 library select functions | ||
|
||
|
||
|
||
#include "PCF8574.h" | ||
|
||
PCF8574 PCF(0x38); | ||
|
||
uint32_t start, stop; | ||
|
||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
Serial.println(__FILE__); | ||
Serial.print("PCF8574_LIB_VERSION:\t"); | ||
Serial.println(PCF8574_LIB_VERSION); | ||
|
||
PCF.begin(); | ||
Serial.println(PCF.isConnected()); | ||
Serial.println(); | ||
|
||
PCF.selectAll(); | ||
delay(1000); | ||
PCF.selectNone(); | ||
delay(1000); | ||
|
||
// VU meter up | ||
for (int i = 0; i < 7; i++) | ||
{ | ||
PCF.selectN(i); | ||
delay(100); | ||
} | ||
|
||
// VU meter down | ||
for (int i = 7; i >= 0; i--) | ||
{ | ||
PCF.selectN(i); | ||
delay(100); | ||
} | ||
} | ||
|
||
|
||
void loop() | ||
{ | ||
// night rider | ||
for (int i = 0; i < 7; i++) | ||
{ | ||
PCF.select(i); | ||
delay(100); | ||
} | ||
for (int i = 7; i >= 0; i--) | ||
{ | ||
PCF.select(i); | ||
delay(100); | ||
} | ||
} | ||
|
||
|
||
// -- 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
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,5 +1,5 @@ | ||
name=PCF8574 | ||
version=0.3.4 | ||
version=0.3.5 | ||
author=Rob Tillaart <[email protected]> | ||
maintainer=Rob Tillaart <[email protected]> | ||
sentence=Arduino library for PCF8574 - 8 channel I2C IO expander | ||
|