lejos.hardware.port.MotorPort Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
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.port;
import lejos.hardware.BrickFinder;
/**
*
* Abstraction for an EV3 output port.
*
* TODO: Sort out a better way to do this, or least clean up the magic numbers.
*
*/
public interface MotorPort {
/**
* MotorPort A.
*/
public static final Port A = BrickFinder.getDefault().getPort("A");
/**
* MotorPort B.
*/
public static final Port B = BrickFinder.getDefault().getPort("B");
/**
* MotorPort C.
*/
public static final Port C = BrickFinder.getDefault().getPort("C");
/**
* MotorPort D.
*/
public static final Port D = BrickFinder.getDefault().getPort("D");
}