这里以测试 PWM7 为例:
cd /sys/class/pwm/pwmchip0/ sudo chmod 666 export echo 0 > export cd pwm0 sudo chmod 666 * echo 10000 > period echo 5000 > duty_cycle echo 1 > enable