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();
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);
}
handleWiFi(); }`