Package lejos.hardware.device
Interface IRTransmitter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbackwardStep(int motor)voidbeep()voidforwardStep(int motor)voidrunProgram(int programNumber)voidsendBytes(byte[] data, int len)Send raw bytes to the RCXvoidsendPacket(byte[] packet)Send a packet of data to the RCXvoidsendRemoteCommand(int msg)Send a remote control command to the RCXvoidstopAllPrograms()
-
-
-
Method Detail
-
sendBytes
void sendBytes(byte[] data, int len)Send raw bytes to the RCX- Parameters:
data- the raw datalen- 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()
-
-