This patch makes both red and green LEDs available in /sys/class/leds instead of probably having them reserved for some special purposes (such as a standby mode indicator?). Being able to control the state of LEDs from applications and scripts is quite useful.
Signed-off-by: Siarhei Siamashka <siarhei.siamas...@gmail.com> --- sys_config/h3/xunlong_orange_pi_pc.fex | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/sys_config/h3/xunlong_orange_pi_pc.fex b/sys_config/h3/xunlong_orange_pi_pc.fex index 93e8c4c..56a9b60 100644 --- a/sys_config/h3/xunlong_orange_pi_pc.fex +++ b/sys_config/h3/xunlong_orange_pi_pc.fex @@ -219,8 +219,8 @@ mode = 0 [gpio_para] gpio_used = 1 gpio_num = 30 -gpio_pin_1 = port:PL10<1><default><default><1> -gpio_pin_2 = port:PA15<1><default><default><0> +; gpio_pin_1 = port:PL10<1><default><default><1> +; gpio_pin_2 = port:PA15<1><default><default><0> gpio_pin_3 = port:PA12<1><default><default><0> gpio_pin_4 = port:PA11<1><default><default><0> gpio_pin_5 = port:PA06<1><default><default><0> @@ -250,9 +250,16 @@ gpio_pin_28 = port:PA20<1><default><default><0> gpio_pin_29 = port:PG06<1><default><default><0> gpio_pin_30 = port:PG07<1><default><default><0> -[led_assign] -normal_led = "gpio_pin_2" -standby_led = "gpio_pin_1" +;[led_assign] +;normal_led = "gpio_pin_2" +;standby_led = "gpio_pin_1" + +[leds_para] +leds_used = 1 +green_led = port:PL10<1><default><default><0> +green_led_active_low = 0 +red_led = port:PA15<1><default><default><0> +red_led_active_low = 0 [ths_para] ths_used = 1 -- 2.4.10 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.