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

lejos.hardware.port.MotorPort 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.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");

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy