Add native support for Pimoroni Scroll pHAT HD (IS31FL3731) - #302
Open
Trotter73 wants to merge 1 commit into
Open
Add native support for Pimoroni Scroll pHAT HD (IS31FL3731)#302Trotter73 wants to merge 1 commit into
Trotter73 wants to merge 1 commit into
Conversation
Adds a new scrollphathd device class, driven natively over I2C by directly talking to the IS31FL3731 LED matrix controller's register map - not a wrapper around Pimoroni's own scrollphathd library. - Register constants live in const.py (new is31fl3731 class), and the protocol/rendering logic lives directly on the scrollphathd device class in device.py, consistent with how max7219/ws2812/apa102 are structured elsewhere in this module. - 17x7 grid of individually PWM-dimmable white LEDs (256 brightness levels), addressed via a 32-bit RGBA image, consistent with the apa102/unicornhathd convention of using the alpha channel to set per-pixel brightness. - Physical LED addressing (visible x,y -> 144-pixel chip buffer index, and the enable/wiring bitmap) is derived algorithmically rather than hardcoded, and cross-checked against the known-good Pimoroni mapping. - Adds tests/test_scrollphathd.py, examples/scrollphathd_demo.py, and documentation updates (README, intro, python-usage, CHANGES).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a new scrollphathd device class, driven natively over I2C by directly talking to the IS31FL3731 LED matrix controller's register map - not a wrapper around Pimoroni's own scrollphathd library.
fixes #100