|
Re: Help! Programming question with triggers
Code:
pwm07 = pwm08 = 127 + ((p3_sw_trig - p3_sw_top) * 40);
One line. I found it very useful this year. You can changew the numher at the end (40) to whatever scale you want. trig will make it go forward, top will make it go back, and either both or none will make it just sit there.
-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;
Horray for most things! -George Carlin
"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
|