\f0\fs24 \cf0 This is a library I put together to use the web4robot.com lcd display in I2C mode.\
** Ported to Matrix Orbital LK162-12 display br Brian Brumfield brian@thebrumfields.com 10/Sept/2010\
\
I have no financial interest in web4robot.com, I purchased one of their displays on e-bay to experiment with.\
\
I used the code I found e for the arduino-4bitlcd libary from http://code.google.com/p/arduino-4bitlcd/ as a place to start\
\
It uses the standard Arduino I2c Wires interface and the following pins\
\
Uses Analog pin 4 - SDA\
Uses Analog pin 5 - SCL\
\
The LCD and keypad are supported. The interrupt pin for the keypad is not supported by this version of the library.\
\
Graphing functions contributed to the library by Ran Talbott\
\
\
---------\
\
\
Init with \
\
** LCDI2C lcd = LCDI2C(2,16,0x50,0); // Where number of lines = 2, Columns = 16 and 0x4C is the i2c address of the display, type of display(Future Use)\
\
\
The following commands are available for within the library.\
\
\
init() Init the LCD and library functions, Clears the display, turns off the cursors\
\
command(command) Write a command not supported yet in the library to the display\
\
position(Row, Column) Move the cursor to position valid range is Row[0-3], Column[0,19]\
\
setCursor(Row,Column) Same as position\
\
print(val) Uses the inherited print command so you can do things like lcd.print(int,DEC);\
\
println(val) Uses the inherited print command so you can do things like lcd.print(int,DEC);\
\
printstr(string) Print a string to the display\
\
write(byte) Raw write a single byte to the display\
\
clear() Clear the display and place the cursor at 0,0\
\
home() Home the cursor to 0,0 but do not clear the display\
\
**on(timeout) Turn the LCD display on, and specify duration for backlight (0 = always on)\
\
off() Turn the LCD display off (not backlight does not go off)\