Led Matrix text scrolling

Hello,

I'm currently programming a 8x32 LEDs matrix (4 devices) but there are still 2 animations that I can't manage to program.

The first one would just be a 4-letter word that I'd like to make appear from left to right quite quickly (by sliding it). Once the word is completely visible and centered, I'd like it to stop for about 2 seconds and then start the animation again.

The first one would just be a 5-letter word that I'd like to make appear from top to bottom quite quickly (by sliding it). Once the word is completely visible and centered, I'd like it to stop for about 2 seconds and then start the animation again.

I point out that I'd like to not use Parola library because I'd like to add some details myself to the words. One last thing, I'd also like to use MD_MAX72xx library as I'm already using this library for other animations.

Thank you to those who will take the time to try to help me :slight_smile:

1 Like

Do you have anything in your Sketch as yet, would be good for everyone who would like to help you see where you are up to so that they can try and help.

Don't forget to use the code tags above to attach your sketch.

I have recently started playing with the MD_MX72xx Library and if you load the MD_MX72xx_Test Library example which is provided with the Library and set up a very simple test circuit with an Arduino Uno and say four 8 X 8 MX7219 Matracies you should be able to find an aspect of the Test sketch which either matches or comes very close to what you are requiring.

You should then be able to easily look through the Test Sketch and find the appropriate code which gives the desired feature. Once you have that, you can at least have something more substantial to work with and people will be more willing to provide you with some assistance.

Hope I have been some help :slight_smile:

Fimez

Hi,

Thank you for your help :smiley:

So here's the first example code from which I'm thinking of making the first animation (it comes from the 'Daft Punk' example code in MD_MAX72xx) :

bool graphicBounceBall(bool bInit)
{
  static uint8_t  idx = 0;      // position
  static int8_t   idOffs = 1;   // increment direction

  // are we initializing?
  if (bInit)
  {
    PRINTS("\n--- BounceBall init");
    resetMatrix();
    bInit = false;
  }

  // Is it time to animate?
  if (millis()-prevTimeAnim < SCANNER_DELAY)
    return(bInit);
  prevTimeAnim = millis();    // starting point for next time

  PRINT("\nBB R:", idx);
  PRINT(" D:", idOffs);

  // now run the animation
  mx.control(MD_MAX72XX::UPDATE, MD_MAX72XX::OFF);

  // turn off the old ball
  mx.setColumn(idx, 0);
  mx.setColumn(idx+1, 0);

  idx += idOffs;
  if ((idx == 0) || (idx == mx.getColumnCount()-2))
    idOffs = -idOffs;

  // turn on the new lines
  mx.setColumn(idx, 0x18);
  mx.setColumn(idx+1, 0x18);

  mx.control(MD_MAX72XX::UPDATE, MD_MAX72XX::ON);

  return(bInit);
}

And here's the second code from which I'd like to make the second animation (from 'test' code in MD_MAX72xx) :

void intensity()
// Demonstrates the control of display intensity (brightness) across
// the full range.
{
  uint8_t row;

  PRINTS("\nVary intensity ");

  mx.clear();

  // Grow and get brighter
  row = 0;
  for (int8_t i=0; i<=MAX_INTENSITY; i++)
  {
    
      mx.setRow(row++, 0xff);
    delay(DELAYTIME*3);
  }

}

I've already tried to edit them and bring modifications but I still can't manage to make the animations I want.. :slightly_frowning_face:

1 Like

Anyone :slight_smile: ?

antsor:
I point out that I'd like to not use Parola library because I'd like to add some details myself to the words.

Sounds like you may have "shot yourself in the foot"! :cold_sweat:

I point out that I'd like to not use Parola library because I'd like to add some details myself to the words

I am curious to understand what you mean by this. What are the 'details' that you want to add?

Paul__B:
Sounds like you may have "shot yourself in the foot"! :cold_sweat:

Oh ok I understand. I've just edited my post :slight_smile:

marco_c:
I am curious to understand what you mean by this. What are the 'details' that you want to add?

I've circled this 'details' on the picture below :

InkedCapture_LI.jpg

InkedCapture_LI.jpg

So - what are they? :roll_eyes: (That is one weird image - half a megabyte and no details!)

I am not sure why what you describe can not be generated by the Parola library. If the objects you describe will be the only ones on the display, the library appears to perform those functions quite adequately.

Agree the picture is not really clear. It looks like the word 'GIRL' with a couple of blobs (graphics?) either side.

From what I see it looks like Parola can handle this, but it is hard to tell. There is a 'Zone_Sign' example that looks similar. There is also definitely the capability to mix text and graphics on the display, although this can get complicated (see Parola A to Z – Mixing Text and Graphics – Arduino++).

I think it might be worth you describing what you are trying to achieve, so we can give you a considered answer, rather than asking us for specific information that may be based on some incorrect assumptions.