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
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-activityStatistics: Posted by aBUGSworstnightmare — Sun Jun 01, 2025 6:13 am