Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nakkaya/clodiuno
- Owner: nakkaya
- License: other
- Created: 2010-01-02T04:59:08.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2014-03-09T10:17:08.000Z (almost 11 years ago)
- Last Synced: 2024-10-13T08:13:21.204Z (3 months ago)
- Language: Clojure
- Homepage: http://nakkaya.com/clodiuno.html
- Size: 218 KB
- Stars: 139
- Watchers: 15
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
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")
```