Mini Project Clock digital
![รูปภาพ](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFSbjwjhn75S1VfDLsmD5JUJnAjpZWcDLZolfVdL4qetwuW00Nfubn61nOGpTKRn292dzAxS7nTP1cpfgnK31bnWIXGJDz6agSvz5BNSh311WacOsnPmsU5Xf_5Qdt4AOnUl30_rMxFpXK/s640/ou89.png)
code #include <Wire.h> #include "RTClib.h" #include <LiquidCrystal.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2); RTC_DS1307 rct; void setup () { Serial.begin(9600); Serial.println("YourDuino.com DS1307 Real Time Clock - Set / Run Utility"); #ifdef AVR Wire.begin(); #else Wirel.begin(); #endif rct.begin(); rct.adjust (DateTime(F(__DATE__),F( __TIME__))); lcd.begin(20,4); } void loop () { DateTime now = rct.now(); lcd.setCursor(0, 0); lcd.print(now.year(), DEC); lcd.print('/'); lcd.print(now.month(), DEC); lcd.print('/'); lcd.print(now.day(), DEC); lcd.print(' '); lcd.print(now.hour(), DEC); lcd.print(':'); lcd.print(now.m...