lejos.hardware.port.SensorPort 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;
/**
* Basic interface for EV3 sensor ports.
* @author andy
*
*/
public interface SensorPort {
public static final Port S1 = BrickFinder.getDefault().getPort("S1");
public static final Port S2 = BrickFinder.getDefault().getPort("S2");
public static final Port S3 = BrickFinder.getDefault().getPort("S3");
public static final Port S4 = BrickFinder.getDefault().getPort("S4");
}