#include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);
byte bytost[8] = {
 B00110,
 B00100,
 B01110,
 B10101,
 B00100,
 B01010,
 B01010,
};
uint8_t oldPosition = 16;
void setup()
{
 lcd.createChar(0, bytost);
 lcd.begin(16,2);
 pinMode(A0, INPUT);
}
void loop()
{
 int analog = analogRead(A0);
 int position = map(analog, 0, 1023, 0, 15);
 if(oldPosition != position)
 {
 lcd.setCursor(oldPosition, 0);
 lcd.print(" ");
 lcd.setCursor(position, 0);
 lcd.write(byte(0));
 oldPosition = position;
 }
}