// LCD print 
// by BARRAGAN <http://people.interaction-ivrea.it/h.barragan> 

// Demonstrates the use of a generic text liquid crystal dsplay (LCD) 
// to print the value of a variable 

// Created 26 march 2006
// Updated 30 august 2007

// creates a LiquidDisplay object with R/S, R/W and E on pins 8,9,10 and 
// data pins on port 2

#include <LiquidCrystal.h>

LiquidCrystal myDisplay = LiquidCrystal(8,9,10,2);


void setup()
{
}

int a = 0;

void loop()
{
  myDisplay.clear();
  myDisplay.home();
  myDisplay.print("Variable a is: ");
  myDisplay.setCursor(16, 0);
  myDisplay.print(a);
  a = a + 1;
  delay(200);
} 

