Difference between revisions of "Bash the Lights"

From Technologia Incognita
Jump to: navigation, search
Line 5: Line 5:
 
|ProjectPurpose=World domination
 
|ProjectPurpose=World domination
 
}}
 
}}
A simple light switch that can turn on and off the powerbar lights.
+
A simple light switch that can turn on and off the [[Powerbar]] lights.
 
 
GL-Inet running some bash magic
 
  
 +
It's a  simple [https://revspace.nl/GL-Inet GL-Inet] device running some curl and bash magic
 
<pre>echo 20 > /sys/class/gpio/export
 
<pre>echo 20 > /sys/class/gpio/export
 
echo in > /sys/class/gpio/gpio20/direction</pre>
 
echo in > /sys/class/gpio/gpio20/direction</pre>

Revision as of 01:24, 22 November 2014

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.

It's a simple GL-Inet device running some curl and 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