Its me again, and ive completed my timer. It counts seconds, minutes, hours and days. Not sure for what I would use this, but anyway, Im thinking that this is to easy. Here is the code
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8 );
void setup()
{
lcd.begin(16, 2);
}
void loop()
{
lcd.print(millis() / 864000);
lcd.setCursor(0, 1);
lcd.print(“Day”);
lcd.setCursor(4, 0);
lcd.print((millis() / 36000) % 24);
lcd.setCursor(4, 1);
lcd.print(“Hrs”);
lcd.setCursor(8, 0);
lcd.print((millis() / 600) % 60);
lcd.setCursor(8, 1);
lcd.print(“Min”);
lcd.setCursor(12, 0);
lcd.print((millis() / 10) % 60);
lcd.setCursor(12, 1);
lcd.print(“Sec”);
delay(500);
lcd.clear();
}
I have four different numbers counting at the same time, and they are displaying on an LCD. But what if I have only one number ticking(seconds), and the minutes, hours and days get count based on the amount of seconds passed. Bassicly, every 60 seconds will form a minute, 60 minutes -an hour. How can I make that in code? Please answer with examples, it makes my life easier.
BTW, Programs must be less than 32 kilobytes, my Uno can handle just that.
Until further Notice.