Wiki / Tools & Software
LegoBpy
LegoBpy is a Python module for the LEGO Interface B control box over a serial/COM port (pyserial). It scripts the box's outputs and reads its inputs from Python.
Usage
legob.py—LegoBclass: up to 8 outputs (on/off/pow(0–7), direction), read 8 inputs (temperature, rotation counts, button states), set power/duration.- Instantiate
LegoB('COM1').
Relation to optical control
Interface B is a wired serial control box (DACTA-era), not optical. It is included for completeness alongside BrickLogo and DACTA · Robolab sensors; it has no VLL or IR.