User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:leds

GPIO on LEDs?200x50nolink

YUN Led?200x50nolink

To switch ON/OFF the LEDs please execute the following commands

GPIO 1: ( USB )

cd /sys/devices/platform/leds-gpio/leds/ds:green:usb
# ON
echo 255 > brightness
# OFF
echo 0 > brightness

GPIO 0: ( WLAN )

cd /sys/devices/platform/leds-gpio/leds/ds:green:wlan
# ON
echo 255 > brightness
# OFF
echo 0 > brightness

GPIO 26: ( RX )

# Disable GPIO21 SPI Level Shifter
echo 21 > /sys/class/gpio/export;
echo out > /sys/class/gpio/gpio21/direction;
echo 1 > /sys/class/gpio/gpio21/value

echo 26 > /sys/class/gpio/export;
echo out > /sys/class/gpio/gpio26/direction;
# ON
echo 0 > /sys/class/gpio/gpio26/value
# OFF
echo 1 > /sys/class/gpio/gpio26/value
/var/www/wiki.linino.org/data/pages/wiki/leds.txt · Last modified: 2013/10/23 16:41 by administrator

2014 © dog hunter llc and the Linino Community. Linino.org is a dog hunter sponsored community project. Credits