Which method should be preferred to switch on and off e.g. USR3-LED?

16 views
Skip to first unread message

Michael

unread,
Feb 12, 2012, 1:52:50 PM2/12/12
to Beagle Board
Hello,

the USR3 LED can be switched on and off by either
# echo 1 > /sys/class/leds/beaglebone::usr3/brightness
or
# echo 1 > /sys/devices/platform/leds-gpio/leds/beaglebone::usr3/
brightness

As both procedures work I am wondering which one is "better" or should
be preferred or what is the difference?


Best regards,
Michael

Koen Kooi

unread,
Feb 12, 2012, 3:44:10 PM2/12/12
to beagl...@googlegroups.com

They are the same interface, the first one is preferred since that doens't require you to know that LED 3 is internally using the leds-gpio driver.

regards,

Koen

Reply all
Reply to author
Forward
0 new messages