Control a RaspberryPI's GPIO with Pixie
LGPL-3.0 License
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
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.
wiringPixie is based on wiringPi
Pin numbers follow the convention used by wiringPi