View Single Post
  #7   Spotlight this post!  
Unread 10-02-2004, 00:17
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Mapping Buttons to PWMs

or even (if you want to be fancy)

pwm03 = p1_sw_trig ? 200 : 127;



as a general rule of thumb, if you're working from the default code without massive modifications, anything dealing with user control (such as button mapping) will go in Default_Routine().
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)