#include <LiquidCrystal.h> // includes the LiquidCrystal library in the sketch
LiquidCrystal myDisplay = LiquidCrystal(8,9,10,2);
int a = 0;
void setup()
{
}
void loop()
{
myDisplay.clear();
myDisplay.home();
myDisplay.print("Variable a is: ");
myDisplay.setCursor(16, 0);
myDisplay.print(a);
a = a + 1;
delay(200);
}
|