This may be off topic, but I have some notes on how to switch a GPIO pin to 
be an LED.

https://elinux.org/EBC_Exercise_17_Switching_a_GPIO_to_an_LED

--Mark

On Sunday, October 11, 2020 at 5:54:41 PM UTC-4 jonn...@gmail.com wrote:

> I'm not sure what board you have or what kernel you are running, however 
> on a Beaglebone Black running a 4.19 kernel, the LED settings are located 
> in the bone-common.dtsi file:
> Note: From the BBB schematic, led1 is connected to the Ethernet port, so 
> perhaps you are trying to control usr0 LED. 
> Ex:
>   /opt/source/dtb-4.19-ti/src/arm/am335x-bone-common.dtsi
>
> *        leds {*
> *                pinctrl-names = "default";*
> *                pinctrl-0 = <&user_leds_s0>;*
>
> *                compatible = "gpio-leds";*
>
> *                led2 {*
> *                        label = "beaglebone:green:usr0";*
> *                        gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;*
> *                        linux,default-trigger = "heartbeat";*
> *                        default-state = "off";*
> *                };*
>
> *                led3 {*
> *                        label = "beaglebone:green:usr1";*
> *                        gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;*
> *                        linux,default-trigger = "mmc0";*
> *                        default-state = "off";*
> *                };*
>
> *                led4 {*
> *                        label = "beaglebone:green:usr2";*
> *                        gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;*
> *                        linux,default-trigger = "cpu0";*
> *                        default-state = "off";*
> *                };*
>
> *                led5 {*
> *                        label = "beaglebone:green:usr3";*
> *                        gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;*
> *                        linux,default-trigger = "mmc1";*
> *                        default-state = "off";*
> *                };*
> *        };*
>
> Cheers,
>
> Jon
>
>
> On Sun, Oct 11, 2020 at 12:34 PM Joshua Park <joshua....@gmail.com> wrote:
>
>> Also, I figure that I process is controlling the blinking of user LED 1 
>> since that is the only one I cannot change. Can anyone tell me what this 
>> process is and if I can stop it from controlling LED 1?
>>
>> On Sunday, October 11, 2020 at 3:01:06 PM UTC-4 Joshua Park wrote:
>>
>>> Hi all,
>>>
>>> I am trying to change the user LEDs but I am unable to make permanent 
>>> changes to the files in */sys/devices/platform/leds/leds*. Can someone 
>>> help me out? 
>>>
>>> Thanks in advance.
>>>
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to beagleboard...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/acfff9b2-a632-47a7-a4f0-29991e4475c5n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beagleboard/acfff9b2-a632-47a7-a4f0-29991e4475c5n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/cf2d3944-7e0f-46c0-8bb3-59c4c0e84cd9n%40googlegroups.com.

Reply via email to