Skip to content

Commit 1337485

Browse files
committed
Version bump to 2.0.0. Updated README.md
1 parent c30f5bc commit 1337485

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,14 @@ MCP23017 mcp = MCP23017(0x24);
2222

2323
Additionaly, you can specify the `Wire` instance to use as a second argument. For instance `MCP23017(0x24, Wire1)`.
2424
See included examples for further usage.
25+
26+
## Remarks
27+
Major renames have been performed in v2.0.0 to improve compatibility with a variety of platforms. Existing code *will* break when you update from version v1.x.
28+
29+
| Name in v1.x | Name in v2.x |
30+
|-----------------------|---------------------------|
31+
| `MCP23017_PORT` | `MCP23017Port` |
32+
| `MCP23017_REGISTER` | `MCP23017Register` |
33+
| `MCP23017_INTMODE` | `MCP23017InterruptMode` |
34+
35+
In addition to this, every member of the `MCP23017Register` enum were renamed to avoid possible conflicts with macro definitions. `GPIOA` was renamed to `GPIO_A`, `INTCAPA` to `INTCAP_A` and so on...

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=MCP23017
2-
version=1.2.0
2+
version=2.0.0
33
author=Bertrand Lemasle
44
maintainer=Bertrand Lemasle
55
sentence=MCP23017 I2C Port expander library.

0 commit comments

Comments
 (0)