package mindstorm-lwt

  1. Overview
  2. Docs

Module NXT.USBSource

Functions to choose and connect to NXT bricks connected through USB. So far, it works on Linux (users of other platforms, your help is welcome).

Sourcetype device

Handle to a USB mindstorm device.

Sourceval bricks : unit -> device list Lwt.t

bricks() returns the list of LEGO NXT bricks on the USB bus.

  • raises Failure

    in case of problems.

Sourceval connect : ?check_status:bool -> device -> usb conn Lwt.t

connect dev connect through USB to the brick device dev (given by Mindstorm_lwt.NXT.USB.bricks). See the section "connectUSB" for more information.

  • raises Failure

    in case of a connection problem.

OCaml

Innovation. Community. Security.