orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
396 stars 189 forks source link

zero-plus-h5 cannot use PWM #25

Closed kluoyun closed 2 years ago

kluoyun commented 4 years ago

官方例程里面的pwm.c运行结果 我的板子是zeroplus h5 查看用户手册发现pwm1是第7脚,然后运行结果就是这样的,pin为6或者7都不行 the pin you choose is not surport hardware PWM you can select PI3 for PWM pin or you can use it in softPwm mode please use soft pwmmode or choose PWM pin

alexgubanow commented 2 years ago

Hello @kluoyun pwm is supported on limited amount of boards. I suggest you try use soft pwm, other wise it is hard fix code of library , so it will be universal in same time and implement pwm for each board. Please close this issue, if soft pwm solution works for you.