I need some help before I start.
I added a scheme to indicate what I want to do.
In my drawing I added 3x LED, and 3x switch, but the main goal is to have 7x.
To make it easy i start with only 3.
I want to have 3 lights that start with Green, after 4 days they turn Yellow, and after 7 days they turn RED.
But each time you press the RESET button, the timer will start from 0 again.
I could do this with 1 LED.
Timer 01
Start:
IF: Button pressed return to START.
else:
Turn on Green
Wait 4 days..
Then Turn on Yellow.
Wait 3 days Turn on RED..
This is how I imagine it would look like (with some more detailed code) .
But how do I do this when adding more Timer ?
Do I need to use a Clock timer module ?
Maybe something like this:
Timer 01 , start from 0, when button 01 pressed return to 0.
Timer 01 , start from 0, when button 02 pressed return to 0.
and then,
when timer 01 is 3 days turn on Yellow
when timer 02 is 3 days turn on yellow
When timer 01 is 7 days turn on RED
when timer 02 is 7 days turn on RED.
I`m very new to this.
But this is how I see it in my head how it should work.
I only need to figure out the coding after I figure out the correct way to do this.
I appriciate all help and ideas