Hello! I need an Android Example to control a LEDs located on Quectel’s SMART-EVB for SC20 Android 7.1 BSP ?
Leds are not described in Android 7.1 BSP for this board.
So, Ive added a
leds {
compatible = “gpio-leds”;
status = “ok”;blue {
gpios = <&msm_gpio 0 0>;
label = “blue”;
linux,default-trigger = “heartbeat”;
linux,default-state = “on”;
//function = LED_FUNCTION_DISK;
};green {
gpios = <&msm_gpio 58 0>;
label = “green”;
linux,default-trigger = “battery-charging”;
linux,default-state = “on”;
//linux,default-trigger = “none”;
//linux,default-trigger = “heartbeat”;
};red {
gpios = <&msm_gpio 99 0>;
label = “red”;
linux,default-trigger = “battery-charging”;
linux,default-state = “on”;
//linux,default-trigger = “none”;
//linux,default-trigger = “heartbeat”;
};
};
in msm8909-mtp.dtsi. And now LEDs are working in adb shell. But i think i should apply 777 permissions for it to be able to control it from apk?