lejos.remote.ev3.RMIRemoteLED 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.remote.ev3;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import lejos.hardware.LED;
import lejos.hardware.ev3.LocalEV3;
public class RMIRemoteLED extends UnicastRemoteObject implements RMILED {
private static final long serialVersionUID = -660643720408840563L;
private LED led = LocalEV3.get().getLED();
protected RMIRemoteLED() throws RemoteException {
super(0);
}
@Override
public void setPattern(int pattern) throws RemoteException {
led.setPattern(pattern);
}
}