Skip to content

Added function to rotate each 8x8 matrix 90° left#8

Open
targetblank wants to merge 3 commits into
squix78:masterfrom
targetblank:master
Open

Added function to rotate each 8x8 matrix 90° left#8
targetblank wants to merge 3 commits into
squix78:masterfrom
targetblank:master

Conversation

@targetblank

Copy link
Copy Markdown

This one resolves #7 with a new function LedMatrix::setRotation(true|false). The rotation in rotateLeft is done with simple bitwise copying and may be optimized.

@bogdanr

bogdanr commented Jan 16, 2017

Copy link
Copy Markdown

It works but I believe it should also have this function documented in the Readme.

@glyons glyons left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed my problem, thanks

@DuncanAmos

Copy link
Copy Markdown

Sorry, I'm not particularly techie...

How do I actually implement this rotation in a sketch?

Thanks

@joeybab3

Copy link
Copy Markdown

I was just looking for a way to do this for those cheap 4 display modules.

@signaleleven

Copy link
Copy Markdown

Thank you for this! Worked like a charm

@wchpikus

Copy link
Copy Markdown

Is it possible to add simple display text without any scrolling?
Now to display text you have to setTEST, choice scroll and commit, 3 functions..
can it be easy to add new one to send text with position on matrix?

@cyberkeiler

Copy link
Copy Markdown

Perfect. Thanks. Works as expected.
So (when) will it be merged, @squix78? 😃

@hozza

hozza commented Jul 29, 2018

Copy link
Copy Markdown

This NEEDS to be merged! :D It's amazing and works! 90deg rotation FTW!

@maubaum

maubaum commented Dec 25, 2018

Copy link
Copy Markdown

It didn't work for my 4-display module. I had to change one line in targetblank code in the RotateLeft function (in CCP file).
Then worked perfectly!

bitWrite(rotatedCols[8 * (deviceNum) + posY], posX, bitRead(cols[8 * (deviceNum) + posX], 7-posY));

@linxcow

linxcow commented May 19, 2019

Copy link
Copy Markdown

For my display I need a RotateRight method , to fix the display on 2 matrixes
Can someone help me please?

@tschissler

Copy link
Copy Markdown

Worked for me like a charm. Wondering why it is not merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rotate 90 degree?