On rock-3a, pwm2 does not work, what could be the reason?
follow these steps:
- append “dtoverlay=rk3568-pwm2-m0” to /boot/config.txt
- Execute “sudo update_extlinux.sh”
- Restart the device
- Run the following code, but I can’t get PWM on pwm2-m0 (pin22)
#define PWM 22 mraa_pwm_context pwm; pwm = mraa_pwm_init(PWM); mraa_pwm_period_us(pwm, 2); mraa_pwm_enable(pwm, 1); mraa_pwm_write(pwm, 0.5);