Subversion Repositories idreammicro-arduino

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21 jlesech 1
/*
2
 *
3
 * copyleft 2011 snootlab
4
 * free software, have fun !
5
 *
6
based on official arduino LiquidCrystal Library
7
- Hello World
8
 
9
 Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
10
 library works with all LCD displays that are compatible with the
11
 Hitachi HD44780 driver. There are many of them out there, and you
12
 can usually tell them by the 16-pin interface.
13
 
14
 This sketch prints "Hello World!" to the LCD
15
 and shows the time.
16
 
17
 Library originally added 18 Apr 2008
18
 by David A. Mellis
19
 library modified 5 Jul 2009
20
 by Limor Fried (http://www.ladyada.net)
21
 example added 9 Jul 2009
22
 by Tom Igoe
23
 modified 22 Nov 2010
24
 by Tom Igoe
25
 
26
 This example code is in the public domain.
27
 
28
 http://www.arduino.cc/en/Tutorial/LiquidCrystal
29
 */
30
 
31
// include the library code:
32
#include "Wire.h"
33
#include <Deuligne.h>
34
 
35
// initialize the library with the numbers of the interface pins
36
Deuligne lcd;
37
 
38
void setup() {
39
  // set up the LCD's number of columns and rows:
40
  lcd.init();
41
  // Print a message to the LCD.
42
  lcd.print("hello, world!");
43
}
44
 
45
void loop() {
46
  // set the cursor to column 0, line 1
47
  // (note: line 1 is the second row, since counting begins with 0):
48
  lcd.setCursor(0, 1);
49
  // print the number of seconds since reset:
50
  lcd.print(millis()/1000);
51
}
52