/* LiquidCrystal Library - Hello World Demonstrates the use a 20x2 LCD display with double sized programmed font. Library originally added 18 Apr 2008 by David A. Mellis library modified 5 Jul 2009 by Limor Fried (http://www.ladyada.net) example added 9 Jul 2009 by Tom Igoe modified 22 Nov 2010 by Tom Igoe http://www.arduino.cc/en/Tutorial/LiquidCrystal */ // include the library code: #include // initialize the library with the numbers of the interface pins // rs, enable, d0, d1, d2, d3, d4, d5, d6, d7 LiquidCrystal_mx300 lcd(12, 13, 4, 5, 6, 7, 8, 9, 10, 11); int count; void setup() { // set up the LCD's number of columns and rows: lcd.begin(20, 2); lcd.clear(); // Print a message to the LCD. lcd.print("hello, world"); count = 0; lcd.autoscroll(); delay(2000); lcd.clear(); } void loop() { lcd.clearBigfont(); lcd.print("Today "); lcd.setBigfont(); lcd.print(21); lcd.clearBigfont(); lcd.print("O "); lcd.setBigfont(); lcd.print("c"); delay(2000); lcd.clear(); /* lcd.clear(); char str[43] = "The quick brown fox jumps over a lazy dog."; for (int i = 0; i < 42; i++) { lcd.print(str[i]); delay(500); } delay(5000); lcd.clear(); char str2[43] = "The Quick Brown Fox Jumps Over A Lazy Dog."; for (int i = 0; i < 42; i++) { lcd.print(str2[i]); delay(500); } delay(5000); */ //lcd.mirrorHorz(); lcd.clear(); lcd.autoscroll(); char str3[43] = "THE QUICK BROWN FOX JUMPS OVER A LAZY DOG."; for (int i = 0; i < 42; i++) { lcd.print(str3[i]); delay(500); } delay(5000); //lcd.rotate180(); lcd.clear(); char str5[37] = "How vexingly quick daft zebras jump!"; for (int i = 0; i < 36; i++) { lcd.print(str5[i]); delay(500); } delay(5000); lcd.noAutoscroll(); lcd.clear(); lcd.clearBigfont(); lcd.print("Timer: "); lcd.setBigfont(); for (int i=0; i< 11; i++) { lcd.setCursor(7,0); count = millis() / 1000; lcd.print(char('0'+((count / 60)) % 10)); lcd.print(':'); lcd.print(char('0'+((count % 60)/10) % 10)); lcd.print(char('0'+((count % 60)) % 10)); delay(995); } lcd.clear(); lcd.setBigfont(); char str4[53] = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"; for (int i = 0; i < 13; i++) { for (int j = 0; j < 4; j++) lcd.print(str4[i * 4 + j]); //lcd.print(" "); delay(1000); lcd.clear(); } delay(1000); //lcd.noMirror(); lcd.clear(); lcd.autoscroll(); for (int i = 0; i < 1000; i++) { lcd.print(char(' ' + (i % 96))); delay(500); } delay(2000); lcd.clear(); }