API and control for a Lego RCX + RPI + Smartphone robot