Skip to content
Samples using the circuits featured in the SparkFun Inventor's Kit
Clojure
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/firmata_samples
.gitignore
LICENSE
README.md
project.clj

README.md

clj-firmata-samples

Provides clj-firmata samples.

The examples follow the circuit layouts from the SparkFun Inventor's Kit guide

Usage

Checkout this repo, and edit the (def port-name "cu.usbmodemfd131") line in the firmata-samples.config namespace. You can find your port name by using

=> (require '[serial.util :refer [list-ports]])
=> (list-ports)

Running the examples are quite simple. For example, to run the first blink example, we can run the following:

=> (require '[firmata-samples.board :refer :all]
            '[firmata-samples.sik :refer :all])

=> (run-example blink)
; ... after we've grown board of blinking...
=> (stop-example blink)

If you'd like to reset the board back to an intial state:

=> (require '[firmata-samples.config :refer [port-name]])

=> (reset-board port-name)

License

Copyright © 2014 Peter Schwarz

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

You can’t perform that action at this time.