A Raspberry Pi GPIO library for newLISP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Added the library. Nov 13, 2012
raspi-gpio.lsp Added the library. Nov 13, 2012

README.md

raspi-gpio-newlisp

A Raspberry Pi GPIO library for newLISP

Intro

This library is pretty self explanitory, use the source, Luke!

Usage

Include the library at the top of your script with:

(load "raspi-gpio.lsp")

From there on, use it similarly to how you'd use Arduino/Wiring, with the exception that it's wrapped up inside the GPIO context:

(GPIO:enable-pin 4)
(GPIO:pin-mode 4 GPIO:out)
(GPIO:digital-write 4 GPIO:high)
(GPIO:disable-pin 4)

License

WTFPLv2, embedded in the source.