I have an arduino Uno board with a screen attached on top (http://www.freetronics.com.au/pages/16x2-lcd-shield-quickstart-guide#.VUf0tMWN0iT This is the screen).
I'm trying to get it so that the screen displays the time in hours, minutes and seconds and counts on a 24 hours loop. Like a digital clock. I have it so that it can count but it just counts up to 99 then repeats.
I have this code which counts milliseconds but I need minutes and hours
#include <Wire.h> #include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() { lcd.begin( 16, 2 ); }
void loop() { lcd.setCursor ( 0, 1); lcd.print(millis()); }
#include <Wire.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup()
{
lcd.begin( 16, 2 );
}
void loop()
{
lcd.setCursor ( 0, 1);
lcd.print(millis());
}