SolidWorksMagi
Senior Member
Hi,
I have one PWM_IN working on one receiver channel to control one PWM output, but I want to add a second PWM_INput from another receiver channel to control another PWM output pin on the 28X2 module. Two PWM Inputs at the same time controller different output pins on the 28X2 module.
What do I need to do to add a second PWM_IN?
symbol PWM_IN = C.1
init: servopos Srvo0, 150
; Main Body
do
pulsin PWM_IN,1,PulseIN
; IF conditions to control B.0 PWM gosub movements
IF PulseIN>275 and PulseIN<350 then gosub STOPP
loop
; Subroutines
STOPP:
servopos Srvo0, 150
return
end
I have one PWM_IN working on one receiver channel to control one PWM output, but I want to add a second PWM_INput from another receiver channel to control another PWM output pin on the 28X2 module. Two PWM Inputs at the same time controller different output pins on the 28X2 module.
What do I need to do to add a second PWM_IN?
symbol PWM_IN = C.1
init: servopos Srvo0, 150
; Main Body
do
pulsin PWM_IN,1,PulseIN
; IF conditions to control B.0 PWM gosub movements
IF PulseIN>275 and PulseIN<350 then gosub STOPP
loop
; Subroutines
STOPP:
servopos Srvo0, 150
return
end
Last edited: