View Single Post
  #4   Spotlight this post!  
Unread 01-03-2002, 18:01
GhettoTech GhettoTech is offline
Registered User
#0300 (Ghetto Techs)
 
Join Date: Feb 2002
Location: Philadelphia
Posts: 21
GhettoTech is an unknown quantity at this point
Send a message via AIM to GhettoTech
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)