Beruflich Dokumente
Kultur Dokumente
I wrote a sample program that demonstrates the basic motor functions. It can
easily be run on any robot with 4 wheels and a large motor attached to the A port.
package edu.scranton.mowens;
import lejos.hardware.lcd.LCD;
import lejos.hardware.motor.EV3LargeRegulatedMotor;
import lejos.hardware.port.MotorPort;
public class MotorDemo {
public static void main(String[] args) throws InterruptedException {
LCD.drawString("Motor Demo", 0, 0);
EV3LargeRegulatedMotor m = new EV3LargeRegulatedMotor(MotorPort.A);
m.setSpeed(900);
}
}