Skip to content

Commit

Permalink
fix Wire1 for ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Sep 24, 2023
1 parent 5b1c1a8 commit 0e6446d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [0.1.10] - 2023-09-24
- fix Wire1 support for ESP32 (again)


## [0.1.9] - 2023-09-23
- add Wire1 support for ESP32
- update readme.md


## [0.1.8] - 2023-02-04
- update readme.md
- update GitHub actions
Expand Down
3 changes: 1 addition & 2 deletions PCF8575.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// FILE: PCF8575.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-07-20
// VERSION: 0.1.9
// VERSION: 0.1.10
// PURPOSE: Arduino library for PCF8575 - 16 channel I2C IO expander
// URL: https://github.com/RobTillaart/PCF8575

Expand All @@ -24,7 +24,6 @@ PCF8575::PCF8575(const uint8_t deviceAddress, TwoWire *wire)
#if defined (ESP8266) || defined(ESP32)
bool PCF8575::begin(int dataPin, int clockPin, uint16_t value)
{
_wire = &Wire;
if ((dataPin < 255) && (clockPin < 255))
{
_wire->begin(dataPin, clockPin);
Expand Down
4 changes: 2 additions & 2 deletions PCF8575.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// FILE: PCF8575.h
// AUTHOR: Rob Tillaart
// DATE: 2020-07-20
// VERSION: 0.1.9
// VERSION: 0.1.10
// PURPOSE: Arduino library for PCF8575 - 16 channel I2C IO expander
// URL: https://github.com/RobTillaart/PCF8575

Expand All @@ -12,7 +12,7 @@
#include "Wire.h"


#define PCF8575_LIB_VERSION (F("0.1.9"))
#define PCF8575_LIB_VERSION (F("0.1.10"))


#ifndef PCF8575_INITIAL_VALUE
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/PCF8575.git"
},
"version": "0.1.9",
"version": "0.1.10",
"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=PCF8575
version=0.1.9
version=0.1.10
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for PCF8575 - 16 channel I2C IO expander
Expand Down

0 comments on commit 0e6446d

Please sign in to comment.