|
Re: Help! Programming question with triggers
i did mine like this
Code:
pwm03 = 127; /*goal claw up and down*/
if (p2_sw_top)
{pwm03 = 195;} /*half speed down*/
else if (p2_sw_trig)
{pwm03 = 59;} /*half speed up*/
__________________
If saftey is first and i put FIRST ahead of everything, then i must be the safest guy in the world.
Team 521 Alumni -- Team 1740 Mentor-- Go Go 1740!
Sometimes I think I've been doing this too long and other times I think I haven't done this enough... but all the times I'm sure I'm crazy Photonics, It's Your Future
|