import lejos.nxt.*; /** creating and lightly trying out an NXTMotor created from a MotorPort instance @author Sharon Tuttle @version 2015-02-10 */ public class NXTMotorTest { /** can we create and use an NXTMotor instance? @param args not used */ public static void main(String[] args) { System.out.println("NXTMotor test"); Button.waitForAnyPress(); LCD.clear(); NXTMotor notRegMotorB = new NXTMotor(MotorPort.B); notRegMotorB.setPower(10); Button.waitForAnyPress(); notRegMotorB.setPower(20); Button.waitForAnyPress(); notRegMotorB.setPower(30); Button.waitForAnyPress(); } }