Bash the Lights

From Technologia Incognita
Revision as of 00:08, 22 November 2014 by The JinX (talk | contribs)
Jump to: navigation, search
Projects
Participants Brainsmoke, Realitygaps, The JinX, Wizzup
Skills Basic electronics, Programming, Bash, Powerbar
Status Active
Niche Electronics
Purpose World domination

A simple light switch that can turn on and off the powerbar lights.

GL-Inet running some bash magic

echo 20 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio20/direction

To read button state

cat /sys/class/gpio/gpio20/value