Return to Our work | Fabrication Wiki
See also the LCDs page in the Fabrication Wiki
Netmedia 2x16 Serial LCD Display with Arduino Diecimila
// netmedia serial 2x16 LCD test
//
// LCD data sheet:
// http://www.robotshop.ca/PDF/netmedia-rohs-serial-lcd-module-v1.pdf
//
// Using Arduino Diecimila
//
// Arduino Vin to LED+
// Arduino Gnd to Gnd
// Arduino 5V to 5
// Arduino Tx to Rx* (N.B.)
//
// Code adapted from
// http://www.arduino.cc/playground/Learning/SerialLCD
//
// N.B. This code causes mysterious compile errors in Arduino 0015
// on Mac OXS X but works just fine in Arduino 0016 and earlier versions like 0012. See
// http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1239771130/2
void setup() {
Serial.begin(9600);
// for versions older than 0016
// beginSerial(9600);
}
void loop() {
clearLCD();
Serial.print(" Hello"); // print text to the current cursor position
newLine(); // start a new line
Serial.print("Arduino");
delay(5000);
}
// clear the LCD
void clearLCD(){
Serial.print(12, BYTE);
}
// start a new line
void newLine() {
Serial.print(10, BYTE);
}

