forked from wled/WLED
-
-
Notifications
You must be signed in to change notification settings - Fork 111
Hub75 virtual matrix panel #185
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
Draft
netmindz
wants to merge
9
commits into
MoonModules:mdev
Choose a base branch
from
netmindz:HUB75-VirtualMatrixPanel
base: mdev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
74849c4
rename VirtualMatrixPanel to virtualDisp rather than fourScanPanel
netmindz 08ee13d
HUB75 - use CHAIN_BOTTOM_LEFT_UP when panel width count and panel hei…
netmindz 72d6e6d
rename VirtualMatrixPanel to virtualDisp rather than fourScanPanel
netmindz 973e813
Further work on VirtualMatrixPanel chain
netmindz 967c1ee
Add docs
netmindz ccd701f
Limit to 4 panels in 2x2 layout
netmindz 7856315
Merge branch 'mdev' into HUB75-VirtualMatrixPanel
netmindz 6ccb38d
Fix merge conflict
netmindz 42b4b63
Merge branch 'mdev' into HUB75-VirtualMatrixPanel
netmindz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -389,7 +389,11 @@ class BusHub75Matrix : public Bus { | |
|
|
||
| uint8_t getPins(uint8_t* pinArray) const override { | ||
| pinArray[0] = activeMXconfig.chain_length; | ||
| return 1; | ||
| pinArray[1] = -1; | ||
| pinArray[2] = -1; | ||
| pinArray[3] = rows; | ||
| pinArray[4] = cols; | ||
|
Comment on lines
+424
to
+425
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no getters in the VirtualDisplay to read these values back out again, might do a PR at some stage to add that |
||
| return 5; | ||
| } // Fake value due to keep finaliseInit happy | ||
|
|
||
| void deallocatePins(); | ||
|
|
@@ -404,10 +408,12 @@ class BusHub75Matrix : public Bus { | |
| unsigned _panelWidth = 0; | ||
| CRGB *_ledBuffer = nullptr; | ||
| byte *_ledsDirty = nullptr; | ||
| int rows = 0; | ||
| int cols = 0; | ||
| // C++ dirty trick: private static variables are actually _not_ part of the class (however only visibile to class instances). | ||
| // These variables persist when BusHub75Matrix gets deleted. | ||
| static MatrixPanel_I2S_DMA *activeDisplay; // active display object | ||
| static VirtualMatrixPanel *activeFourScanPanel; // active fourScan object | ||
| static VirtualMatrixPanel *activevirtualDisp; // active fourScan object | ||
| static HUB75_I2S_CFG activeMXconfig; // last used mxconfig | ||
| static uint8_t activeType; // last used type | ||
| static uint8_t instanceCount; // active instances - 0 or 1 | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
192x128 total was chain 6 - 2, 3, 64, 64, CHAIN_BOTTOM_RIGHT_UP (4)