1 2 import lejos.nxt.Button; 3 import lejos.nxt.LCD; 4 import lejos.nxt.Motor; 5 6 7 /** 8 * Simplest 3 motor commands 9 * @author owner.GLASSEY 10 * 11 */ 12 public class MotorTutor1 13 { 14 /** 15 * @param args 16 */ 17 public static void main(String[] args) 18 { 19 LCD.drawString("Program 1", 0, 0); 20 Button.waitForAnyPress(); 21 LCD.clear(); 22 Motor.A.forward(); 23 LCD.drawString("FORWARD",0,0); 24 Button.waitForAnyPress(); 25 LCD.drawString("BACKWARD",0,0); 26 Motor.A.backward(); 27 Button.waitForAnyPress(); 28 Motor.A.stop(); 29 } 30 } 31 32