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

Raspberry Pi OS • Re: How to utilise ledtrig-disc ?

$
0
0
as there is no Info on your project provided I can only guess ..

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

Code:

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

Statistics: Posted by aBUGSworstnightmare — Sun Jun 01, 2025 6:13 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles