Releases: wollewald/MCP23017_WE
TwoWire object can now be passed to the constructor
There are now additional options to create your MCP23017 object:
- MCP23017 myMCP = MCP23017(MCP_ADDRESS) -> uses Wire / no reset pin (if not needed)
- MCP23017 myMCP = MCP23017(MCP_ADDRESS, RESET_PIN) -> uses Wire / RESET_PIN
- MCP23017 myMCP = MCP23017(&wire2, MCP_ADDRESS) -> uses the TwoWire object wire2 / no reset pin
- MCP23017 myMCP = MCP23017(&wire2, MCP_ADDRESS, RESET_PIN) -> all together
If you pass a Wire object you can use e.g. both I2C busses of an ESP32.
Link to the english version of the related blog post changed
For some reasons I had to change the link to the english version of the correspondig blog post.
from:
https://wolles-elektronikkiste.de/port-expander-mcp23017-2?lang=en
to:
https://wolles-elektronikkiste.de/en/port-expander-mcp23017-2
No changes to code.
Removed a bug
Removed a very stupid bug.
The correct way to clear a bit is of course:
Register &= ~(1<<bitNo)
This was wrong in the functions for setting interrupt polarity, interrupt pin open drain setetting and interrupt mirroring.
Link to english post
I have translated the post in which I describe the library into English and added the link.
No change of code.
Deleted unnecessary delays in MCP23017.cpp
There was an unnecessary delay in MCP23017.cpp. This was a leftover from the testing phase.
Use of reset pin now optional
You can choose now, if you want to use the reset function. If you don't, you can save one pin.
keywords.txt added
keywords.txt has been added
Worked on compiler warnings, some maintenance
Work on some compiler warnings. Therefore I needed to change the function setPort( val, val, Port, Port) into simply setPort( val, val ). The ports as arguments were redundant. This is NOT backwards compatible.
Some work on the format of MCP23017.cpp.
Changed all byte into uint8_t.
Version number corrected
No real change to version 1.2.2. I just had released 1.2.2 before updating version in library.properties. Corrected now.
Wiring plan for basic input output sketch corrected
Wiring plan for basic input output sketch corrected