OCaml Mindstorm is a library that enables to drive LEGOŽ mindstorm robots from OCaml through a Bluetooth or USB connection.
Drive Lego Minsdstorm bricks with OCaml!
How to connect to the Lego brick is explained at the end of the API
description, in the sections "How to connect the brick through bluetooth"
and "How to connect the brick through USB".