Hi,
Is anybody having a problem activating pwm2_m1? I have pwm0_m1 enabled but unable to activate pwm on pin 3 with these overlays enabled
/dtbs/4.19.193-58-rockchip-gbac1feba87f0/rockchip/overlay/rk3568-pwm0-m1.dtbo
/dtbs/4.19.193-58-rockchip-gbac1feba87f0/rockchip/overlay/rk3568-pwm2-m1.dtbo
I get the error
Traceback (most recent call last):
File "/home/rock/test_cp2.py", line 5, in <module>
cppwm = mraa.Pwm(3)
File "/usr/local/lib/python3.9/dist-packages/mraa.py", line 483, in __init__
_mraa.Pwm_swiginit(self, _mraa.new_Pwm(pin, owner, chipid))
ValueError: Error initialising PWM on pin
with the following python code to test
from __future__ import division
import time
import mraa
cppwm = mraa.Pwm(3)
cppwm.period_us(1000)
cppwm.enable(True)
cppwm.write(0.5)
time.sleep(10)
cppwm.write(0.0)
time.sleep(10)
cppwm.write(0.5)
while(True):
print('running...')
Thanks
Adam