Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Beginners • Re: Trying to Understand Act LED on Raspberry Pi5

$
0
0
well, in Linux you may have to leave 'beginner level' quite fast...

triggers for LEDs are defined for device tree. what you're looking for is https://github.com/raspberrypi/linux/bl ... n.yaml#L91

use the gpio-led which is there https://github.com/raspberrypi/linux/bl ... verlay.dts, decide the trigger of your dreams and you're done.

for an HDD acivity LED on GPIO 27 add below to config.txt should do the trick

Code:

dtoverlay=gpio-led,gpio=27,label=activity,trigger=disk-activity

Statistics: Posted by aBUGSworstnightmare — Wed Dec 17, 2025 5:23 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles