Quote:
|
if p1_sw_trig = 1 then PWM12 = 150
|
Just a little note. That won't work in PBasic. PBasic's If/Then statemtents include an automatic "Goto."
If p1_sw_trig = 1 then (Goto) is implied
If p1_sw_trig = 0 then skip:
PWM12 = 150
skip:
that would be one way to work around that problem. (Similar to how the PWM limit switches are programed)