wiringPixie

Control a RaspberryPI's GPIO with Pixie

LGPL-3.0 License

Stars
11

wiringPi(xie)

Control a RaspberryPI's GPIO with Pixie

(require wiring-pixie.gpio :refer :all)

(def pin 7) ;; note the Addressing Pins section below!

(wiringPiSetup)         ;; required first!
(pinMode pin OUTPUT)    ;; pin to OUTPUT
(digitalWrite pin HIGH) ;; set pin 7 to HIGH

Installation

Add wiringPixie to your project.edn's dependencies

[stuarth/wiringPixie "0.2.0-alpha"]

Follow the instructions on wiringPi's site to install wiringPi on your Raspberry Pi.

About

wiringPixie is based on wiringPi

Addressing Pins

Pin numbers follow the convention used by wiringPi