Hello everybody!
Im not sure this is even possible, so please forgive a newbie question..
Ive found some situations where i would like to have a "dynamic list" of sorts, for instance, to stack debug messages for the display output, so i have to clear each message with a button or timer before the next is displayed.
Or similarly, to have a "state-machine"-ish setup, where i could prioritize and organize what to do next in my program, depending on each functions priority rating and timing settings
Simply put, a way to add/remove items to a process-queue, so my functions can fetch the item next in line, without having to know exactly what to fetch.
I would add each item in the queue when its timer ran out, and process the queue contents depending on each items age in list, priority value or something along those lines.
I am a newbie with some minor talent, so a arrow in the right direction is more or less what im asking for here.
And if this is impossible, please kill these ideas of mine, so i can bury them and move on..
To pinpoint what im after here;
I have a bunch of functions and i want the debug console (16x2 char LED) to display if a function is changing a global structure.
The functions are affected by tactile buttons, setting the system states in this global structure, later to be used by the output functions.
So the display is used as a feedback to verify that everything is happening correctly.
(to notice that the LED is ON but the LED_state is OFF and so on)
But i dont want to overwrite each message before i had the chance of reading it, meaning i would want to "stack" the messages in a queue, displaying one after the other, in the order they came in, changing to the next after a pre-set timer interval or a button press (any would suffice).
So is this possible at all?
Is it manageable by a amateur?
Thank you for your time and effort here, i greatly appreciate any help on this topic!