All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lejos.hardware.motor.RCXMotor Maven / Gradle / Ivy

Go to download

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.

The newest version!
package lejos.hardware.motor;

import lejos.hardware.motor.BasicMotor;
import lejos.hardware.port.BasicMotorPort;
import lejos.hardware.port.Port;

/**
 * Abstraction for an RCX motor.
 * 
 */
public class RCXMotor extends BasicMotor {
    
	public RCXMotor(BasicMotorPort port)
	{
		this.port = port;
	}
	
	public RCXMotor(Port port)
	{
	    this(port.open(BasicMotorPort.class));
	    releaseOnClose(this.port);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy