用这种方法可以关闭]明白了这个原理之后,我们可以设计一个脚本让这 LED 按照我们的需要闪烁起来,就和使用 GPIO 控制外部 LED BlingBling 类似。
[table]
1
2
3
4
5
6
7
from]
保存为]
如果你希望永久禁用这两个]
[table]
1
2
3
4
5
6
7
# Disable the ACT LED.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
对于树莓派]
如果要完全关闭]
1
2
3
4
5
6
7
8
9
10
# Set the Pi Zero ACT LED trigger to 'none'.
echo none | sudo tee /sys/class/leds/led0/trigger
# Turn off the Pi Zero ACT LED.
echo 1 | sudo tee /sys/class/leds/led0/brightness
To make these settings permanent, add the following lines to your Pi's /boot/config.txt file and reboot:
# Disable the ACT LED on the Pi Zero.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on