Take your time
21/6
2022

Linux LED-Blink DTS配置以及修改间隔时间

DTS:

SYS_STATUS {
    gpios = <&gpc 0 0>;
    label = "led-blink";
    linux,default-trigger = "none";
    retain-state-suspended;
};

用户空间中:
echo timer > /sys/class/leds/led-blink/trigger 开启,关闭为none
echo 100 > /sys/class/leds/led-blink/delay_on 修改间隔时间
echo 100 > /sys/class/leds/led-blink/delay_off

+ MORE