Commits

F Malpartida committed 1158b23

Edited online

  • Participants
  • Parent commits c2cb279

Comments (0)

Files changed (1)

 The library is also very easy to customize for different I2C IO expansion boards using different 
 I2C expander ASICs.
 
-Since this library is a full class hierarchy, new interfacing mechanisms can be added without having to re-write the entire driver. Drivers for 
-=== Syntax highlighting ===
+Since this library is a full class hierarchy, new interfacing mechanisms can be added without having to re-write the entire driver. Drivers for the MCP2300, SPI and Serial are very easy to develop since the user would only have to wary about how to write to the particular new device.
 
-You can also highlight snippets of text, we use the excellent [[http://www.pygments.org/|Pygments]] library.
+=== Library Usage ===
+
+The way the library is used as the current LiquidCrystal LCD library indicating what type of LCD you want to use in your project. The main
+
 
 Here's an example of some Python code:
 
 {{{
 #!python
 
-def wiki_rocks(text):
-    formatter = lambda t: "funky"+t
-    return formatter(text)
+#include <LiquidCrystal.h>
+#include <LiquidCrystal_4bit.h>
+
+
+LiquidCrystal_4bit lcd(12, 11, 5, 4, 3, 2);
+#define   CONTRAST_PIN   9
+#define   BACKLIGHT_PIN  7
+#define   CONTRAST       125
+
+void setup()
+{
+  // Switch on the backlight and LCD contrast levels
+  pinMode(CONTRAST_PIN, OUTPUT);
+  pinMode(BACKLIGHT_PIN, OUTPUT);
+
+  digitalWrite(BACKLIGHT_PIN, HIGH);
+  analogWrite (CONTRAST_PIN, CONTRAST);
+    
+  lcd.begin(16,2);               // initialize the lcd 
+
+  lcd.home ();                   // go home
+  lcd.print("Hello, ARDUINO ");  
+  lcd.setCursor ( 0, 1 );        // go to the next line
+  lcd.print (" WORLD!");      
+}
+
+void loop()
+{
+
+}
 }}}
 
-You can check out the source of this page to see how that's done, and make sure to bookmark [[http://pygments.org/docs/lexers/|the vast library of Pygment lexers]], we accept the 'short name' or the 'mimetype' of anything in there.
-
 Have fun!