关闭树莓派的电源指示灯和状态指示灯

树莓派的电源指示灯只要加电就是一直亮的,而且还很亮,尤其在晚上,特别晃眼,我就想能不能关掉,经过实验,终于找到了关闭树莓派电源指示灯的方法,下面是完整的过程,以供大家参考。实现的原理并不难,在给树莓派添加一个硬件开、关机按键 中,我已经讲过了利用/boot/config.txt文件来给树莓派添加一个硬件的开关,如果想了解其中的原理,可以参考该文章。树莓派电源指示灯和状态指示灯的控制,官方文档中是这么说的:
act_led_trigger         Choose which activity the LED tracks.Use "heartbeat" for a nice load indicator.(default "mmc")act_led_activelow       Set to "on" to invert the sense of the LED(default "off")N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-ledoverlay.act_led_gpio            Set which GPIO to use for the activity LED(in case you want to connect it to an externaldevice)(default "16" on a non-Plus board, "47" on aPlus or Pi 2)N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-ledoverlaypwr_led_triggerpwr_led_activelowpwr_led_gpioAs for act_led_*, but using the PWR LED.Not available on Model A/B boards.
即可以通过关闭act_led_trigge...阅读全文