/* Arduino Projects for Dummies * by Brock Craft * * Chapter 7: Building an Arduino Clock * An alarm clock that uses the Adafruit Industries DS1307 RTC Breakout board * and a 16x2 Parallel LCD Display * * This code just tests the LCD display * * Uses the default Wire and LiquitCrystal libraries * and the Adafruit RTC library * * v0.1 30.04.2013 * Adapted from http://www.adafruit.com/products/746 */ #include // I2C Wire Library for communicating with the DS1307 RTC #include "RTClib.h" // Date and time functions for the DS1307 RTC connected #include // Display functions for the LCD Display RTC_DS1307 rtc; // Create a realtime clock called rtc LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // Create an LCD called lcd void setup () { Wire.begin(); // Enables the communication for the LCD rtc.begin(); // Enables the RTC lcd.begin(16, 2); // Enables the LCD lcd.print(" It's Alive!"); // Print a message, centered, to the LCD to confirm is working delay(1000); // Wait a moment so we can read it lcd.clear(); // Clear the LCD } void loop(){ }