Clojure API for Arduino.
For installation instructions and examples check project homepage.
(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
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")