range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
199
6) Then use the following command to make pwm11 output a 50Hz square wave (please
switch to the root user first, and then execute the following command)
root@orangepi:~# echo 0 > /sys/class/pwm/pwmchip1/export
root@orangepi:~# echo 20000000 > /sys/class/pwm/pwmchip1/pwm0/period
root@orangepi:~# echo 1000000 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle
root@orangepi:~# echo 1 > /sys/class/pwm/pwmchip1/pwm0/enable
7) Other pwm test methods are similar to the test method of pwm11 demonstrated above.