Skip to content
Library to drive Lego mindstorm NXT bricks from OCaml. Communication with the NXT brick is done through bluetooth.
OCaml Pascal C HTML CSS Standard ML Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
doc
examples
lwt
src
tests-lwt
tests
web
.gitignore
.travis.yml
CHANGES.md
LICENSE
Makefile
README.md
appveyor.yml
dune-project
mindstorm-lwt.opam
mindstorm.opam

README.md

Build Status Appveyor Build status

Mindstorm

Installation

The easier way to install this library is by using OPAM:

opam install mindstorm

for the standard version and

opam install mindstorm-lwt

for the LWT one. If you prefer to compile and install by hand, make sure you have dune and the dependencies listed in src/dune and lwt/dune, then run

dune build @install
dune install mindstorm
dune install mindstorm-lwt

Usage

Two modules are available: Mindstorm and Mindstorm_lwt with essentially the same signatures, except that the second one—as its name indicates—is to be used with Lwt.

Prerequisite under Unix

You need the package libbluetooth-dev (under Debian) or equivalent. For the USB connection, you must install the package libusb-1.0-0-dev (its presence should be automatically detected).

Prerequisite under Windows

Do not install the LEGO® fantom drivers. (If you know how to make this library work with the LEGO® drivers installed, submit a patch!)

Prerequisite under Mac OS X

Xcode.

Documentation

You can compile the HTML doc with

make doc

and then point your browser to _build/default/_doc/index.html. Alternatively, you can read it online.

You can’t perform that action at this time.