|
RCXPortVersion 1.1 of the rcx package by Dario Laverde defines various classes, of which the most important is RCXPort : package rcx; public class RCXPort { public RCXPort(String port); public void addRCXListener(RCXListener rl); public boolean open(); public void close(); public boolean isOpen(); public OutputStream getOutputStream(); public InputStream getInputStream(); public synchronized boolean write(byte[] bArray); public String getLastError(); } The RCXOpcode class has a useful static method for creating byte code: package rcx; public class RCXOpcode { public static byte[] parseString(String str); } The relevant methods for this project are the following:
|