NXT: bottoni e schermo

import lejos.nxt.Button;
import lejos.nxt.LCD;
import lejos.nxt.Motor;
import lejos.robotics.navigation.DifferentialPilot;
import lejos.util.Delay;

public class Bottoni {

	public static void main(String[] arg) {

		DifferentialPilot dp = new DifferentialPilot(5.5, 11.5, Motor.A, Motor.C);
		dp.forward();
		int i = 0;
		do {
			LCD.drawInt(i++, 0, 0);
			Delay.msDelay(100);
			if (Button.ENTER.isDown())
				LCD.drawString("ENTER premuto", 0, 1);
			else
				LCD.drawString("             ", 0, 1);
		} while (!Button.ESCAPE.isDown());

	}

}