lejos.nxt.addon
Interface IRTransmitter

All Known Implementing Classes:
IRLink, RCXLink

public interface IRTransmitter

Interface for infra-red transmitters that can send bytes to an RCX

Author:
Lawrie Griffiths

Method Summary
 void backwardStep(int motor)
           
 void beep()
           
 void forwardStep(int motor)
           
 void runProgram(int programNumber)
           
 void sendBytes(byte[] data, int len)
          Send raw bytes to the RCX
 void sendPacket(byte[] packet)
          Send a packet of data to the RCX
 void sendRemoteCommand(int msg)
          Send a remote control command to the RCX
 void stopAllPrograms()
           
 

Method Detail

sendBytes

void sendBytes(byte[] data,
               int len)
Send raw bytes to the RCX

Parameters:
data - the raw data
len - the number of bytes

sendPacket

void sendPacket(byte[] packet)
Send a packet of data to the RCX

Parameters:
packet -

sendRemoteCommand

void sendRemoteCommand(int msg)
Send a remote control command to the RCX

Parameters:
msg - the code for the remote command

runProgram

void runProgram(int programNumber)

forwardStep

void forwardStep(int motor)

backwardStep

void backwardStep(int motor)

beep

void beep()

stopAllPrograms

void stopAllPrograms()