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
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-activityStatistics: Posted by aBUGSworstnightmare — Wed Dec 17, 2025 5:23 am