All Projects → nakkaya → Clodiuno

nakkaya / Clodiuno

Licence: other
Clojure API for the firmata protocol.

Programming Languages

clojure
4091 projects

Clojure API for Arduino.

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

[clodiuno "0.0.4-SNAPSHOT"]

For examples, check out the project homepage.

Usage

Create board

(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.

(System/setProperty "gnu.io.rxtx.SerialPorts" "/path/to/your/port")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].