Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adriankumpf/arb-ex
An Elixir NIF for controlling the ABACOM CH341A relay board.
https://github.com/adriankumpf/arb-ex
ch341a elixir-lang nif relay rust-lang
Last synced: 24 days ago
JSON representation
An Elixir NIF for controlling the ABACOM CH341A relay board.
- Host: GitHub
- URL: https://github.com/adriankumpf/arb-ex
- Owner: adriankumpf
- License: mit
- Created: 2018-03-31T19:57:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T21:40:45.000Z (4 months ago)
- Last Synced: 2024-10-11T14:10:59.413Z (about 1 month ago)
- Topics: ch341a, elixir-lang, nif, relay, rust-lang
- Language: Elixir
- Homepage: https://hex.pm/packages/arb
- Size: 156 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# arb-ex
[![Docs](https://img.shields.io/badge/hex-docs-green.svg?style=flat)](https://hexdocs.pm/arb)
[![Hex.pm](https://img.shields.io/hexpm/v/arb?color=%23714a94)](http://hex.pm/packages/arb)An Elixir NIF for controlling the ABACOM CH341A relay board
([documentation](https://hexdocs.pm/arb)).## Getting started
### Requirements
In order to compile a recent version of `rust` must be installed. Also, the
native [libusb](https://github.com/libusb/libusb) library is required (e.g
`libusb-1.0-0-dev` on Debian-based distributions).### Installation
Add `:arb` to your list of dependencies:
```elixir
def deps do
[
{:arb, "~> 0.13"}
]
end
```## Usage
```elixir
iex> Arb.activate([1, 4, 7])
:okiex> Arb.get_active()
{:ok, [1, 4, 7]}
```## Development
```bash
docker build -t arb-ex .
docker run --privileged -it arb-ex
```## See also
- [abacom-relay-board](https://github.com/adriankumpf/abacom-relay-board)