Add uOLED-96-G1 C Sample Code.
[frickel.git] / projects / geeknamensschilder_c / hardware / libraries / LiquidCrystal / examples / Display / Display.pde
blobb430539e460dbd6d8e118594f380a30b4bdc9358
1 /*
2   LiquidCrystal Library - display() and noDisplay()
3  
4  Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
5  library works with all LCD displays that are compatible with the 
6  Hitachi HD44780 driver. There are many of them out there, and you
7  can usually tell them by the 16-pin interface.
8  
9  This sketch prints "Hello World!" to the LCD and uses the 
10  display() and noDisplay() functions to turn on and off
11  the display.
13  The circuit:
14  * LCD RS pin to digital pin 12
15  * LCD Enable pin to digital pin 11
16  * LCD D4 pin to digital pin 5
17  * LCD D5 pin to digital pin 4
18  * LCD D6 pin to digital pin 3
19  * LCD D7 pin to digital pin 2
20  * 10K resistor:
21  * ends to +5V and ground
22  * wiper to LCD VO pin (pin 3)
24  Library originally added 18 Apr 2008
25  by David A. Mellis
26  library modified 5 Jul 2009
27  by Limor Fried (http://www.ladyada.net)
28  example added 9 Jul 2009
29  by Tom Igoe 
30  modified 25 July 2009
31  by David A. Mellis
34  http://www.arduino.cc/en/Tutorial/LiquidCrystal
35  */
37 // include the library code:
38 #include <LiquidCrystal.h>
40 // initialize the library with the numbers of the interface pins
41 LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
43 void setup() {
44   // set up the LCD's number of rows and columns: 
45   lcd.begin(16, 2);
46   // Print a message to the LCD.
47   lcd.print("hello, world!");
50 void loop() {
51   // Turn off the display:
52   lcd.noDisplay();
53   delay(500);
54    // Turn on the display:
55   lcd.display();
56   delay(500);