Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Nov 16, 2022
1 parent ca390dc commit f69fda5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [0.3.7] - 2022-11-16
- fix #40 - add interrupt section to readme.md

## [0.3.6] - 2022-10-19
- fix example PCF8574_rotaryEncoder.ino
- add RP2040 to build-CI
Expand Down
2 changes: 1 addition & 1 deletion PCF8574.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// FILE: PCF8574.cpp
// AUTHOR: Rob Tillaart
// DATE: 02-febr-2013
// VERSION: 0.3.6
// VERSION: 0.3.7
// PURPOSE: Arduino library for PCF8574 - 8 channel I2C IO expander
// URL: https://github.com/RobTillaart/PCF8574
// http://forum.arduino.cc/index.php?topic=184800
Expand Down
4 changes: 2 additions & 2 deletions PCF8574.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// FILE: PCF8574.h
// AUTHOR: Rob Tillaart
// DATE: 02-febr-2013
// VERSION: 0.3.6
// VERSION: 0.3.7
// PURPOSE: Arduino library for PCF8574 - 8 channel I2C IO expander
// URL: https://github.com/RobTillaart/PCF8574
// http://forum.arduino.cc/index.php?topic=184800
Expand All @@ -14,7 +14,7 @@
#include "Wire.h"


#define PCF8574_LIB_VERSION (F("0.3.6"))
#define PCF8574_LIB_VERSION (F("0.3.7"))

#ifndef PCF8574_INITIAL_VALUE
#define PCF8574_INITIAL_VALUE 0xFF
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ The library allows to read and write both single pins or 8 pins at once.
Furthermore some additional functions are implemented that are playful and useful.


#### Interrupts

The PCF8574 has an interrupt output line (INT) to notice a MCU that one of the input lines has changed.

This comment has been minimized.

Copy link
@thijstriemstra

thijstriemstra Nov 16, 2022

Contributor

notice -> notify

This comment has been minimized.

Copy link
@RobTillaart

RobTillaart Nov 17, 2022

Author Owner

fixed (in local dev branch)

This comment has been minimized.

Copy link
@RobTillaart

RobTillaart Nov 17, 2022

Author Owner

added to master branch

This can be used to prevent active polling of the PCF8574, which can be more efficient.
The library does not support this internally.

There are two examples to show how interrupts can be used:
- PCF8574_interrupt.ino
- PCF8574_rotaryEncoder.ino


## I2C Clock

Tested on UNO with **PCF8574_performance** showed that the PCF8574 still works at 500 KHz and failed at 600 KHz.
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/PCF8574.git"
},
"version": "0.3.6",
"version": "0.3.7",
"license": "MIT",
"frameworks": "arduino",
"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=PCF8574
version=0.3.6
version=0.3.7
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino library for PCF8574 - 8 channel I2C IO expander
Expand Down

0 comments on commit f69fda5

Please sign in to comment.