View Single Post
  #9   Spotlight this post!  
Unread 17-03-2004, 20:26
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Help! Programming question with triggers

Code:
if (p3_sw_trig==1)
{
   pwm07=175;
   pwm08=175;
}
else if (p3_sw_top==1)
{
   pwm07=90;
   pwm08=90;
}
else
{
   pwm07=127;
   pwm08=127;
}
try this... just beware if you push both the trigger and top button at the same time, it'll still go forward.