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

lejos.hardware.device.IRTransmitter 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.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();
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy