Go to Post "OMG Is that brandon?!?!?" "Lets go say hi" "No i'm scared" - Josh Hambright [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 09-02-2004, 22:08
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Mapping Buttons to PWMs

In a bit of pseudo code

Code:
if(p1_sw_trig) {
   // When we hold down the button do this
   pwm08 = 200;
}
else {
   // When we are not holding down the button, do this
   pwm08 = 127;
}
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut buttons when posting Wetzel CD Forum Support 2 10-12-2003 15:27
Looking for some help with buttons and pins... Amanda Morrison General Forum 4 26-02-2003 17:32
Assigning Joystick buttons.... archiver 2001 5 24-06-2002 00:59
Where do the stop buttons go??? archiver 2001 0 24-06-2002 00:35
How many buttons??? purplehaze357 Championship Event 0 18-04-2002 23:54


All times are GMT -5. The time now is 10:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi