Changes

Jump to: navigation, search

FAQ:fitlet2

19 bytes removed, 09:07, 13 March 2018
/* How to Control fitlet2 front LEDs? */
To control the GPIOs need to login as root (root password required):
$ su Password:
To control for example LED1 GREEN part:
$ echo 435 > /sys/class/gpio/export $ echo out > /sys/class/gpio/gpio435/direction $ echo 1 > /sys/class/gpio/gpio435/value # LED1 should be GREEN now $ echo 0 > /sys/class/gpio/gpio435/value # LED1 should be OFF now $ echo 435 > /sys/class/gpio/unexport
The GPIO framework and GPIO sysfs interface are documented in
352
edits