-
Is there a way to simply change the start position of a pixel? i.e. revise the Pixel 0 position from TOP-LEFT to, say, LOWER-RIGHT? I ask because I'm reusing a WLED project where I constructed a 3D printed frame using 3 16x16 panels and the spectrum project in NightDriver is upside-down. I'd prefer not to have to rip apart my frame to reinstall the panels rotated 180 degrees. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
If I read your question correctly, you're actually looking for a way to rotate the orientation of the matrix by 180 degrees. I didn't test this, but you could try adding the following line to the very start of the matrix.setRotation(rotation180); |
Beta Was this translation helpful? Give feedback.
-
You read correctly but unfortunately the Spectrum doesn't use he Matrix libraries. As such I did find a solution by adding: Oh - and thanks for the prompt reply! Edit: Just to be clear if anyone is trying to resolve the same issue, the changes were made to gfxbase.h |
Beta Was this translation helpful? Give feedback.
-
Good point - you can do whatever remapping (rotations, flips, mirrors) you like in the xy virtual override.
… On Mar 9, 2023, at 8:40 AM, Robert Livingston ***@***.***> wrote:
You read correctly but unfortunately the Spectrum doesn't use he Matrix libraries. As such I did find a solution by adding:
x = _width - x - 1; y = _height - y - 1;
to the start of
inline virtual uint16_t xy(uint16_t x, uint16_t y) const
Which would essentially accomplish the same as rotating 180 degrees.
Oh - and thanks for the prompt reply!
—
Reply to this email directly, view it on GitHub <#236 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA4HCF23X72BTSQX7UE4EXTW3IBWBANCNFSM6AAAAAAVUZILHI>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
-
Oh, and just a comment off topic: Those M5StickC Plus controllers are fantastic! I was going to use a more standard ESP32 with an I2S mic but your videos made me aware of them - great little devices with so many features (and quite inexpensive considering all the features). |
Beta Was this translation helpful? Give feedback.
-
Check out their website, they have a TON of cool modules and adding!
https://m5stack.com/
… On Mar 9, 2023, at 10:48 AM, Robert Livingston ***@***.***> wrote:
Oh, and just a comment off topic: Those M5StickC Plus controllers are fantastic!
I was going to use a more standard ESP32 with an I2S mic but your videos made me aware of them - great little devices with so many features (and quite inexpensive considering all the features).
—
Reply to this email directly, view it on GitHub <#236 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA4HCF3VECLG3HMIKXYG3JLW3IQZRANCNFSM6AAAAAAVUZILHI>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
lol - just what I need to look into after my wife's instruction to "stop buying $hit"... |
Beta Was this translation helpful? Give feedback.
-
OT: I once saw an eBay auction that offered to include a “cheap” invoice “for your wife”. No idea if he was kidding...
… On Mar 9, 2023, at 10:57 AM, Robert Livingston ***@***.***> wrote:
lol - just what I need to look into after my wife's instruction to "stop buying $hit"...
—
Reply to this email directly, view it on GitHub <#236 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA4HCFZLE6HP6XOQQ3GIZ73W3IR3PANCNFSM6AAAAAAVUZILHI>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
You read correctly but unfortunately the Spectrum doesn't use he Matrix libraries. As such I did find a solution by adding:
x = _width - x - 1; y = _height - y - 1;
to the start of
inline virtual uint16_t xy(uint16_t x, uint16_t y) const
Which would essentially accomplish the same as rotating 180 degrees.
Oh - and thanks for the prompt reply!
Edit: Just to be clear if anyone is trying to resolve the same issue, the changes were made to gfxbase.h