Skip to content

An Elixir NIF for controlling the ABACOM CH341A relay board.

License

Notifications You must be signed in to change notification settings

adriankumpf/arb-ex

Repository files navigation

arb-ex

Docs Hex.pm

An Elixir NIF for controlling the ABACOM CH341A relay board (documentation).

Getting started

Requirements

In order to compile a recent version of rust must be installed. Also, the native libusb library is required (e.g libusb-1.0-0-dev on Debian-based distributions).

Installation

Add :arb to your list of dependencies:

def deps do
  [
    {:arb, "~> 0.13"}
  ]
end

Usage

iex> Arb.activate([1, 4, 7])
:ok

iex> Arb.get_active()
{:ok, [1, 4, 7]}

Development

docker build -t arb-ex .
docker run --privileged -it arb-ex

See also