so im trying to write a code for a home project and i've written it p 3 times and cant seem to get it im self taught and only started 4 days ago, but I have a basic understanding of what most commands do...
so Im trying to use and lcd display a 16 charecter X 2 line LCD
I need to write a code that will display a count down from 59 min to 0 min
and repeat that 9 times
along with that, on a different section of the display the 9 needs to be shown and I need it to decrease by 1 one the time reaches 0
plese if you are willing to tell me how do i write it to display a count down on screen with hrs:min
what i typed up i dont know how so i just didnt even try
im tying to figure out if I can write it like this or if i need to configure the lcd to read and write (Digital or analog idk) to allow it to use the variable
what im understanding is if there are "" around the text it cant be changed Because it has no value
#include <LiquidCrystal.h>
LiguidCrystal lcd (12, 11, 5 , 4, 3, 2,)
unsigned long start;
unsigned long current;
const unsigned long period =59000
void setup ()
start() = Millis();
int a = 59
int b = 1
lcd.print=("59")
void Loop()
current = millis();
if (current - start >= period);
lcd.print(("59")=a-b) // basically the idea is that when the period of 1 hr is over it should
change(decrease)
the text the lcd prints by a value of 1 and the lcd will display it
}
{
if lcd.print== ("0")
Lcd.print ( "8" )
and I know i need to set the curser to change the text location
but I honestly dont know how to do this...
I have looked at some countdown/ timer codes posted online but they are all Greek to me because i dont understand how certain terms can act as functions/ variables when they arent listed as such in the referances on the arduino site