Skip to content

Commit

Permalink
Develop (RobTillaart#8)
Browse files Browse the repository at this point in the history
* fix RobTillaart#6 ambiguity readButton8()
* update version to 0.2.3
  • Loading branch information
RobTillaart authored Dec 14, 2020
1 parent eb81e4d commit ef9d989
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
21 changes: 11 additions & 10 deletions PCF8574.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
// FILE: PCF8574.cpp
// AUTHOR: Rob Tillaart
// DATE: 02-febr-2013
// VERSION: 0.2.2
// VERSION: 0.2.3
// PURPOSE: Arduino library for PCF8574 - I2C IO expander
// URL: https://github.com/RobTillaart/PCF8574
// http://forum.arduino.cc/index.php?topic=184800
//
// HISTORY:
// 0.2.2 2020-12-07 add Arduino-ci + start unit test + Wire.h in PCF8574.h
// 0.2.1 2020-06-19 fix library.json
// 0.2.0 2020-05-22 #pragma once; refactor;
// 0.2.3 2020-12-14 fix #6 readButton8 ambiguity
// 0.2.2 2020-12-07 add Arduino-ci + start unit test + Wire.h in PCF8574.h
// 0.2.1 2020-06-19 fix library.json
// 0.2.0 2020-05-22 #pragma once; refactor;
// removed pre 1.0 support
// added begin(dsa, scl) for ESP32
// added reverse()
//
// 0.1.9 2017-02-27 fix warning about return in readButton8()
// 0.1.08 2016-05-20 Merged work of Septillion
// 0.1.9 2017-02-27 fix warning about return in readButton8()
// 0.1.08 2016-05-20 Merged work of Septillion
// Fix/refactor ButtonRead8() - see https://github.com/RobTillaart/Arduino/issues/38
// missing begin() => mask parameter
// 0.1.07 2016-05-02 (manually merged) Septillion
// 0.1.07 2016-05-02 (manually merged) Septillion
// added dataOut so a write() doesn't read first,
// possibly corrupting a input pin;
// fixed shift comment, should read 1..7;
Expand All @@ -28,9 +29,9 @@
// added buttonRead() and buttonRead8()
// which only effect the output while reading
// 0.1.06 (intermediate) added defined errors + refactor rotate
// 0.1.05 2016-04-30 refactor, +toggleMask, +rotLeft, +rotRight
// 0.1.04 2015-05-09 removed ambiguity in read8()
// 0.1.03 2015-03-02 address int -> uint8_t
// 0.1.05 2016-04-30 refactor, +toggleMask, +rotLeft, +rotRight
// 0.1.04 2015-05-09 removed ambiguity in read8()
// 0.1.03 2015-03-02 address int -> uint8_t
// 0.1.02 replaced ints with uint8_t to reduce footprint;
// added default value for shiftLeft() and shiftRight()
// renamed status() to lastError();
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.2.2
// VERSION: 0.2.3
// PURPOSE: Arduino library for PCF8574 - I2C IO expander
// URL: https://github.com/RobTillaart/PCF8574
// http://forum.arduino.cc/index.php?topic=184800
Expand All @@ -15,7 +15,7 @@
#include "Arduino.h"
#include "Wire.h"

#define PCF8574_LIB_VERSION "0.2.2"
#define PCF8574_LIB_VERSION "0.2.3"

#define PCF8574_OK 0x00
#define PCF8574_PIN_ERROR 0x81
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ in the class this is faster than reread the pins.
- **valueOut()** returns the last written data.
- **setButtonMask(mask)**
- **readButton8()**
- **readButton8(mask = 0xFF)**
- **readButton8(mask)**
- **readButton(pin)**
- **toggle(pin)** toggles a single pin
- **toggleMask(mask)** toggles a selection of pins, if you want to invert all pins use 0xFF.
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.2.2",
"version":"0.2.3",
"frameworks": "arduino",
"platforms": "*"
}
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.2.2
version=0.2.3
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino library for PCF8574 - I2C IO expander
Expand Down

0 comments on commit ef9d989

Please sign in to comment.