spi is a device driver application for SPI (Synchronous Peripheral Interface) written in erlang and C.
spi is built using rebar that can be found here, with building instructions here. rebar's dynamic configuration mechanism, described here, is used so the environment variable
REBAR_DEPS should be set to the directory where your erlang applications are located.
Clone the repository in a suitable location:
$ git clone git://github.com/tonyrog/spi.git
Rebar will compile all needed dependencies.
$ cd spi $ rebar compile ... ==> spi (compile)
spi is started in a standard erlang fashion:
$ erl (node@host) 1> application:start(spi).
The following interface functions exist:
For details see the source code.