MajicDesigns / MD_Parola

Library for modular scrolling LED matrix text displays
GNU Lesser General Public License v2.1
438 stars 135 forks source link

temporarily terminate default P.displayText #83

Closed CCERocks closed 3 years ago

CCERocks commented 3 years ago

hi, im tweaking your ESP8266 code with Animation Catalog that run on start by default so then when new message come in the Catalog should temporarily disappear...

i cant get it work here in the loop

can you help me?

`void loop() { static textPosition_t just = PA_CENTER; static uint8_t i = 0; // text effect index

if (P.displayAnimate()) // animates and returns true when an animation is completed { // set up new animation P.displayText(catalog[i].psz, just, catalog[i].speed, catalog[i].pause, catalog[i].Effect);

i++;   // then set up for next text effect

if (newMessageAvailable)
{
  P.displayReset();

  strcpy(curMessage, newMessage);
  newMessageAvailable = true;
}
P.displayClear();
P.displayReset();

}

handleWiFi(); }`