1 import lejos.nxt.Button; 2 import lejos.nxt.LCD; 3 import lejos.nxt.Motor; 4 import lejos.util.Delay; 5 6 7 8 /** 9 * Use rotate() methods 10 * @author owner.GLASSEY 11 * 12 */ 13 public class MotorTutor3 { 14 15 /** 16 * @param args 17 */ 18 public static void main(String[] args) 19 { 20 LCD.drawString("Program 3", 0, 0); 21 Button.waitForAnyPress(); 22 LCD.clear(); 23 Motor.A.rotate(1440); 24 LCD.drawInt(Motor.A.getTachoCount(),0,0); 25 Motor.A.rotateTo(0); 26 LCD.drawInt(Motor.A.getTachoCount(),0,1); 27 Button.waitForAnyPress(); 28 } 29 30 } 31 32