-
Notifications
You must be signed in to change notification settings - Fork 9
Adafruit_CircuitPython_74HC595: Added support for multiple shift registers #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! Just a couple suggestions. We'll want to release this as a new version number because gpio
will return a bytearray instead of an int now.
I'm new to Python. Makes sense to me. Co-authored-by: Scott Shawcroft <[email protected]>
I did not know this. Co-authored-by: Scott Shawcroft <[email protected]>
I didn't really understand what this was doing in the original code, but I thought I'd just keep it. Co-authored-by: Scott Shawcroft <[email protected]>
Did you test the latest version? I don't always make perfect edits... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have accepted all your changes. I also applied them to my local copy and tested them in my project which is using four shift registers. It all appears to work just fine.
I think I completed everything, but being this is more first Pull Request experience I might be missing something. |
Yes i did.
…On Tue, Apr 13, 2021, 2:07 PM Scott Shawcroft ***@***.***> wrote:
Did you test the latest version? I don't always make perfect edits...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBGG5DE76HLE3WQSLPIWETTISB63ANCNFSM42X2MRAQ>
.
|
That's exactly what I had hoped. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Updating https://github.com/adafruit/Adafruit_CircuitPython_74HC595 to 1.3.0 from 1.2.4: > Merge pull request adafruit/Adafruit_CircuitPython_74HC595#17 from davidleedom/patch-1 > "Increase duplicate code check threshold " Updating https://github.com/adafruit/Adafruit_CircuitPython_SHT4x to 1.0.4 from 1.0.3: > Merge pull request adafruit/Adafruit_CircuitPython_SHT4x#4 from jposada202020/improving_docs > "Increase duplicate code check threshold " Updating https://github.com/adafruit/Adafruit_CircuitPython_FunHouse to 1.1.2 from 1.1.1: > Merge pull request adafruit/Adafruit_CircuitPython_FunHouse#8 from makermelissa/main Updating https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal to 2.3.0 from 2.2.3: > Merge pull request adafruit/Adafruit_CircuitPython_MatrixPortal#75 from adafruit/rp2040
I simply changed the single byte used to send to the shift register into an array. Then mapped pin values greater than 7 to the next byte. So you will see value of _byte_pos which is the element of the byte array and _byte_pin which is the bit in the _byte_pos element.