trying to get text scrolling using maxmatrix. attached is a video of what i get. what am i missing?
thanks a bunch in advance!
MaxM.mpg (892 KB)
trying to get text scrolling using maxmatrix. attached is a video of what i get. what am i missing?
thanks a bunch in advance!
MaxM.mpg (892 KB)
You'd get more help by posting your code with the
</>
Good idea, thank you!
Here:
#include <MaxMatrix.h>
#include "CH.h"
#define maxDisp 4
#define pinDin 12
#define pinCs 11
#define pinClk 10
byte Buf7219[7];
MaxMatrix lc = MaxMatrix(pinDin, pinCs, pinClk, maxDisp);
void setup() {
lc.init();
lc.setIntensity(0);
}
char msg[] = "The quick brown fox juumped over the lazy DOG.;:@'+=-/&";
void loop() {
delay(1000);
lc.shiftLeft(false, true);
printStringWithShift(msg, 100);
}
void printCharWithShift(char c, int shift_speed) {
if (c < 32) return;
c -= 32;
memcpy_P(Buf7219, CH + 7*c, 7);
lc.writeSprite(maxDisp*8, 0, Buf7219);
lc.setColumn(maxDisp*8 + Buf7219[0], 0);
for (int i=0; i<=Buf7219[0]; i++) {
delay(shift_speed);
lc.shiftLeft(false, false);
}
}
void printStringWithShift(char* s, int shift_speed) {
while (*s != 0) {
printCharWithShift(*s, shift_speed);
s++;
}
}
Text is scrolling from top to bottom.
indeed ![]()
i'd like it to scroll from right to left, as nature intended.
question is, how?
I am starting to use the LedControl library with my 8x8, so I am not sure how the MaxMatrix library works.
i'm open to exploring other libs, in fact i did play with LedControl, and it worked very well for me, however, i didn't find an easy way to scroll text with LedControl..
Try the Parola Library (link in my signature block). You will also need the MD_MAX72xx library. Please make sure you read the documentation for the MAX72xx library on how to set up your hardware.
First off, Marco, wow, what an impressive work! Fast, smooth and just best of the class!
Just incredible!
I suspect my matrix is wired differently than what your library expects. I took an example from examples section called "Parola_Scrolling.ino", updated pins to match mine and it worked nicely except as you can see in the video, looks like my 8 by 8s are swapped around.
If this is something that looks familiar i'd appreciate a hint, if not i intend to continue tinkering with it tomorrow.
Once again, your generous work and help is very much appreciated!!
Video.MPG (767 KB)
Please make sure you read the documentation for the MAX72xx library on how to set up your hardware.
Did you make the changes to the MD_MAX72xx header file to tell it which modules you have? All modules are wired differently and you need to set a compile time #define so the library can configure the appropriate combination of rows and columns.
Also please make sure that the Data in is on the right, as per the documentation.
I am guessing that somewhere on the module you have printed FC-16...
Bingo!
Video.MPG (803 KB)
Good. Have fun.