PWM enhancements in 5.07.06 (undocumented)


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11635
Posted: 11:28am 09 Jan 2023      

yes

Forgot to mention you can use an offset of -1 to omit a channel from the synch

e.g.



setpin gp0,pwm
setpin gp1,pwm
pwm 0,5000,33,66
setpin gp2,pwm
setpin gp4,pwm
pwm 1,10000,25,,1
pwm 2,10000,25
pwm sync -1,0,25 ' syncs channels 1 and 2 but leaves 0 untouched

Edited 2023-01-10 01:47 by matherp