Go Down

Topic: Rotating scrolling text on 8x64 led matrix (Read 5269 times) previous topic - next topic

Beakerfm

Hi there.
I'm new to this and need some advice. I've managed to connect 8 led matrix and have a message scrolling on them but it is scrolling vertically on the display. I need it to come from right to left not top to bottom.

Is there an easy fix or have I missed something big?
Thanks for any help offered.

Paul__B


Beakerfm

Thank you for your response. I'm looking at that and completely lost. Some of it makes sense but I think I've bitten off more than I can chew.
I have a code that does exactly what I want but it scrolls in the wrong direction.
http://www.youtube.com/watch?v=83KuOXhj_4M

The code is included as attachment hopefully.

Thanks again

marco_c

Your video is private so cannot be viewed.

The fundamental issue is that the code is moving columns and you should be moving rows. It comes down to the way the matrix is wired up is probably different from the assumptions made in the LedControl library.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Beakerfm

Rookie error. I've made it public now.
Thanks so much for getting back to me. I'll keep searching and hunting.
I think I'll need to start from scratch and learn to program it. Was trying to cheat and take a short cut.

marco_c

Someone else has already mentioned it but the Parola library and code will do what you want and more.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Beakerfm

After remembering to "Import" the Parola library, I now have it installed and compiles fine. I have added the
#define USE_PAROLA_HW 0
#define USE_FONT_ADJUST 1
and the text is now coming  scrolling from the bottom of the display to the top and is mirrored. I feel that I'm getting closer but I need to use the enum transformType_t
   {
      TSL,   ///< Transform Shift Left one pixel element
      TSR,   ///< Transform Shift Right one pixel element
      TSU,   ///< Transform Shift Up one pixel element
      TSD,   ///< Transform Shift Down one pixel element
      TFLR,   ///< Transform Flip Left to Right
      TFUD,   ///< Transform Flip Up to Down
      TRC,   ///< Transform Rotate Clockwise 90 degrees
      TINV   ///< Transform INVert (pixels inverted)
   };
I can't seem to get this to work at all. I have once again included the code. I hope someone can talk me through my errors as I'm starting to pull out the limited hair I have left.
Thanks

marco_c

You don't need to have the FONT_ADJUST turned on at all, that is an engineering function, and you should not need any transformations. FONT_ADJUST is removed in the next version as it seems to be confusing quite a few people.

With the modules that you have you will need to make sure that they are oriented so that the IC is at the TOP (ie, it looks upside down from the picture you have at the beginning of this thread), and you should be ok.

There is information on your module type doing this and a photo in the main Parola thread http://forum.arduino.cc/index.php?topic=171056.75
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Beakerfm

Just wanted to drop a line and say a huge thank you for pointing me in the right direction. Didn't realise that I had to change the code in the MD_Parola.h and MAX72xx.h files. I was reading them as just text and instruction files. The display is working amazingly now and I can't wait to see how far I can take this.
You guys are amazing . Thank you  :) :) :) XD XD XD

Go Up