MCP23017 read #5
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On a hack day over the weekend I added some read functionality to your MCP230xx code - it worked great. This is that code re-written to be more in keeping with your formatting, but it is untested. To see the working code you can look at the master branch of my fork.
When I get a chance (probably about 2 weeks from now) I'll be testing this version; so I'll post here again when that's done to let you know it works. I'm just submitting this now to save you having to duplicate my effort in the mean time, in case you need the same functionality :)
Cheers!