Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 1.78 KB

GPIO.md

File metadata and controls

77 lines (59 loc) · 1.78 KB

GPIO

Pin Number Direction (Input/Output) Function/Usage
0 Input Reset Button
1 Input WPS Button
2 Output Blue Mid LED
3 Output Green Bottom LED
13 Output Green Mid LED
15 Output Red Mid LED
16 Input Check Button

LEDs

white

echo high > /sys/class/gpio/gpio2/direction
echo high > /sys/class/gpio/gpio13/direction
echo high > /sys/class/gpio/gpio15/direction

blue

echo high > /sys/class/gpio/gpio2/direction
echo low > /sys/class/gpio/gpio13/direction
echo low > /sys/class/gpio/gpio15/direction

green

echo low > /sys/class/gpio/gpio2/direction
echo high > /sys/class/gpio/gpio13/direction
echo low > /sys/class/gpio/gpio15/direction

red

echo low > /sys/class/gpio/gpio2/direction
echo low > /sys/class/gpio/gpio13/direction
echo high > /sys/class/gpio/gpio15/direction

off

echo low > /sys/class/gpio/gpio2/direction
echo low > /sys/class/gpio/gpio13/direction
echo low > /sys/class/gpio/gpio15/direction

yellow

echo low > /sys/class/gpio/gpio2/direction
echo high > /sys/class/gpio/gpio13/direction
echo high > /sys/class/gpio/gpio15/direction

purple

echo high > /sys/class/gpio/gpio2/direction
echo low > /sys/class/gpio/gpio13/direction
echo high > /sys/class/gpio/gpio15/direction

blue bright

echo high > /sys/class/gpio/gpio2/direction
echo high > /sys/class/gpio/gpio13/direction
echo low > /sys/class/gpio/gpio15/direction