บทความ

กำลังแสดงโพสต์จาก มีนาคม, 2019

Mini Project Clock digital

รูปภาพ
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...