Wednesday, February 22, 2012

3pi robot LCD from Arduino


What is a 3pi robot ?
What is an Arduino board ?

----------------

#include

OrangutanLCD lcd;

void setup()               // run once, when the sketch starts
{

}

void loop()                // run over and over again
{
  // avoid clearing the LCD to reduce flicker
  lcd.gotoXY(0, 0);
  lcd.print("Line 1");
  lcd.print("  ");              // overwrite any left over digits
 
  lcd.gotoXY(0, 1);

  lcd.print("Line 2");
  lcd.print("  ");              // overwrite any left over digits

}

No comments:

Post a Comment