[HACKTOBERFEST] MockSpi Class revision #301
Merged
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.
This PR is supposed to fix Issues #298, #299 and last but certainly not least Issue #300!
It is also supposed to be part of Hacktoberfest.
According to the FAQ, if you add the
hacktoberfest-accepted
label to my PR, it will count - that is, should you choose to accept it ofc. ;)You could also open the entire repo to Hacktoberfest, could be worthwhile. Here's the relevant info.
I was made aware of these shortcomings of the MockSpi class by my working extensively with Roberts class for interfacing with the MCP23S17 Integrated Circuit.
Here's an example of how I use this revised version of MockSpi:
There are more working examples in my fork of Roberts project.
Feel free to give feedback and I will try to adapt the code as ASAP as possible.
Also, if you accept the PR, please don't forget to label it
hacktoberfest-accepted
🙏.Cheers!
-MNG