Open GoogleCodeExporter opened 8 years ago
[deleted comment]
I would like to know how to do this also.
Since i'm trying to rotate 180 degrees the Max7219 board so the chip is on top,
so I would need to shiftRight and Rotate the characters so they are right side
up.
When replacing shiftLeft to shiftRight in the example code is does nothing on
the display?!
Please help...
Thank you
Original comment by cryot...@gmail.com
on 28 Feb 2015 at 7:31
I found something to scroll the text from left to right (shiftRight function)
but there are 2 problems:
1: you need to reverse your message
2: there is time needed to display a new character, I men this: when you use
the shiftLeft function, the next character is formed net to the ledmateix and
comes piece by piece, with my code (see below) the display is waiting until
there is enough space on to display the whole character, it does not come piece
by piece... Maybe we can work together to fix this?
This is my code (just the shiftRight)
void printCharWithShift(char c){
if (c < 32) return;
c -= 32;
memcpy_P(buffer, CH + 7*c, 7);
m.writeSprite(maxInUse, 0, buffer);
m.setColumn(maxInUse + buffer[0], 0);
for (int i=0; i<buffer[0]+1; i++)
{
delay(shift_speed);
m.shiftRight(false, false);
}
}
This is used to reverse my message:
void reverse(){
NUMs = strlen(msg);
for (int i = 0, j = NUMs-1; i< NUMs/2;i++,j--)
{
int temp = msg[i];
msg[i] = msg[j];
msg[j] = temp;
}
}
Original comment by bram.wer...@gmail.com
on 1 Mar 2015 at 7:23
Thanks for the reply, I will look and try your code later today, and check to
see if we can solve this problem together!
Will reply here with findings...
Original comment by cryot...@gmail.com
on 4 Mar 2015 at 3:50
Original issue reported on code.google.com by
bram.wer...@gmail.com
on 24 Feb 2015 at 9:56