Can you please enable us to control additional leds connected to available GPIOs on the header?
I want to install my rpi in a big case and to have external activity leds, triggered by for example mmc0, would be great.
example: echo mmc0 >/sys/class/leds/led1/trigger
led1 could be GPIO17
I believe that the LED triggers are already included for Raspberry Pi.
If you want to use GPIO based LEDs, you probably need to modprobe
gpio-led or some similar module. Then you will see them under /sys/class/leds and be able to set them up as triggers.
Append this line to cmdline.txt
(nn = gpio pin)
Remove ‘activelow=on,’ to reverse LED on/off.