DART-SD410 Android Examples
From Variscite Wiki
DART-SD410 - Using Peripherals
This WIKI describes how to use some simple peripheral devices available on VAR-DT410CustomBoard.
Using User LED1
User LED1 (D6) connected to GPIO21 of the CPU. The LED1 is defined in the apq8016-var-dt410.dtsi file under gpio-leds section.
general1 { gpios = <&msm_gpio 21 0>; label = "led1"; linux,default-trigger = "none"; default-state = "off"; retain-state-suspended; };
The user can access the LED device via serial console by:
$ su # cd /sys/class/leds/led1 # echo 1 > brightness The led will turn on # echo 0 > brightness The led will turn off