Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nakkaya/clodiuno

Clojure API for the firmata protocol.
https://github.com/nakkaya/clodiuno

Last synced: 2 months ago
JSON representation

Clojure API for the firmata protocol.

Awesome Lists containing this project

README

        

Clojure API for Arduino.

To install, merely add the following to your 'project.clj'.

```clojure
[clodiuno "0.0.4-SNAPSHOT"]

```

For examples, check out the [project
homepage](http://nakkaya.com/clodiuno.html).

# Usage

## Create board

```clojure
(ns clj-arduino
(:require [clodiuno.core :refer :all])
(:require [clodiuno.firmata :refer :all]))

(def board (arduino :firmata "/path/to/port"))
; or
(def board (arduino :firmata "/path/to/port" :baudrate 9600))
; default baudrate is 57600
```

# Issues

If you got NoSuchPortException then you need add your port to env var containing ports.
```clojure
(System/setProperty "gnu.io.rxtx.SerialPorts" "/path/to/your/port")
```