lejos.hardware.device.IRTransmitter 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.device;
/**
* Interface for infra-red transmitters that can send bytes to an RCX
*
* @author Lawrie Griffiths
*/
public interface IRTransmitter {
/**
* Send raw bytes to the RCX
* @param data the raw data
* @param len the number of bytes
*/
public void sendBytes(byte [] data, int len);
/**
* Send a packet of data to the RCX
* @param packet
*/
public void sendPacket(byte[] packet);
/**
* Send a remote control command to the RCX
*
* @param msg the code for the remote command
*/
public void sendRemoteCommand(int msg);
public void runProgram(int programNumber);
public void forwardStep(int motor);
public void backwardStep(int motor);
public void beep();
public void stopAllPrograms();
}