Show warning text on LCD display only once

I have successfuly written a code for MPGuino to pop up warning text, if I am on display that shows me clock and temperature readings and if temperature readings show less than 3°C. The only problem is ... that when I'm on that display it keeps on showing me that XD

Here is the display without the warning text:

  1. Question:
    MPGuino has several displays, showing you all sorts of stuff :slight_smile: Would it be posible that nomather on which display I'm at, it would show me the warning text if temperature is bellow 3°C ? But that it wouldn't show me the warning every time I switch between displays.

2,3. Question:
How should I change the code so that it would pop up text only once? :relaxed:
Or, that it would pop up text for, lets say 5 seconds and then stoped bodering me abouth that, for at least 10 min? :astonished:

I've tried with delay, but the problem is, that I can't move between other displays until the delay stops. :~

I hope someone understands me and my problems :slight_smile: :slight_smile:

Okay, I'm not that familiar with the MPGiuno, but most LCD displays once have to be set up once to display you can go on to do other things, the display will stay in place. Your main loop should contain a few counters counting time. Those counters will control when and what gets turned off. And when I say turned off, I mean the LCD is reset with the second line getting blanks (therefore shutting down the second line of data).

These same counters could produce a rollover display, changing the data between multiple items if you wanted.

Enjoy!

Hard to be very helpful without seeing the code, but basically, you need to use millis and record when you showed the message. Then, compare millis to the stored time and see whether 10 minutes have passed. If it has, you can show the message again.