Skip to content
Blink an LED - the hello world of embedded electronics
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/hello_gpio
.gitignore
LICENSE
README.md
project.clj

README.md

hello-gpio

A simple example which blinks an LED attached to GPIO pin 17 on a Raspberry PI

Usage

Run lein repl as root on your Raspberry PI (Settng up leiningen on your PI):

user=> (require '[hello-gpio.core :refer :all] :reload)
nil
user=> (def blinker (blink))
#'user/blinker

And when you're bored with blinking

user=> (stop! blinker)

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.