Wiki / Tools & Software
LegoRcxPy
LegoRcxPy is a Python module for serial communication with the RCX via an infrared tower (DB9 serial, not USB). It scripts an RCX from Python and serves as a code reference for the RCX packet format.
Usage
legorcx.py—RCXclass: motor control (A/B/C, fwd/rev/coast), sensor type/mode setup, read variables/timers/motors/sensors, RCX-to-RCX messages, graceful shutdown.- Needs RCX firmware preloaded (
firm0332.lgo) via NQC · BrickCC. - Implements RCX IR protocol framing over pyserial.