Thread
:
Mapping Buttons to PWMs
View Single Post
#
3
09-02-2004, 22:09
deltacoder1020
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
Re: Mapping Buttons to PWMs
say you want the trigger to set pwm3 to 200 when pressed, 127 when not:
if(p1_sw_trig) pwm03 = 200;
else pwm03 = 127;
any of the button status variables will work in the if statement.
--edit--
lol, apparently ryan and I are both forum hawks
__________________
Team 1020, the Indiana Prank Monkeys (
www.team1020.org
)
deltacoder1020
View Public Profile
Visit deltacoder1020's homepage!
Find all posts by deltacoder1020
Find CD-Media Photos by deltacoder1020
Find CD-Media Papers by deltacoder1020