Go to most recent revision | 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 | - Cursor |
||
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 and |
||
15 | uses the cursor() and noCursor() methods to turn |
||
16 | on and off the cursor. |
||
17 | |||
18 | Library originally added 18 Apr 2008 |
||
19 | by David A. Mellis |
||
20 | library modified 5 Jul 2009 |
||
21 | by Limor Fried (http://www.ladyada.net) |
||
22 | example added 9 Jul 2009 |
||
23 | by Tom Igoe |
||
24 | modified 22 Nov 2010 |
||
25 | by Tom Igoe |
||
26 | |||
27 | This example code is in the public domain. |
||
28 | |||
29 | http://www.arduino.cc/en/Tutorial/LiquidCrystal |
||
30 | */ |
||
31 | |||
32 | // include the library code: |
||
33 | #include "Wire.h" |
||
34 | #include <Deuligne.h> |
||
35 | |||
36 | // initialize the library with the numbers of the interface pins |
||
37 | Deuligne lcd; |
||
38 | |||
39 | void setup() { |
||
40 | // set up the LCD's number of columns and rows: |
||
41 | lcd.init(); |
||
42 | // Print a message to the LCD. |
||
43 | lcd.print("hello, world!"); |
||
44 | } |
||
45 | |||
46 | void loop() { |
||
47 | // Turn off the cursor: |
||
48 | lcd.noCursor(); |
||
49 | delay(500); |
||
50 | // Turn on the cursor: |
||
51 | lcd.cursor(); |
||
52 | delay(500); |
||
53 | } |
||
54 |