|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: This is not too hard to do
Posted by Russell Pauley.
Coach on team #344 from Phoebus High School. Posted on 1/31/2000 6:36 AM MST In Reply to: This is not too hard to do posted by Joe Johnson on 1/31/2000 5:31 AM MST: Innovation First has a paper on there web site that gives you the code to run a PWM with a button. Russell : Justin, : I think that this is not all that difficult. : Basically, you need a few IF statements. : Something like: : . : . : . : IF (THUMB1.eq.1) then MaxSpeed : Goto NoThumb : MaxSpeed: : if (Y1.gt.127) then FullAhead : FullRev: : Y1=00 : Goto NoThumb : FullAhead: : Y1=254 : NoThumb: : . : . : . : .gt. = greater than : .eq. = equal : (html sometimes gets confused if we use the real symbols) : Hope this helps. : Joe J. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Compatition | Angela06 | Programming | 30 | 08-04-2005 23:12 |
| multi-bank programming problem | GregC | Programming | 3 | 14-02-2003 16:13 |
| Pneumatics electrical wiring and programming | archiver | 2001 | 1 | 23-06-2002 23:10 |
| Error found in programming for the pump and pressure switch | sjharobotics | Programming | 4 | 06-02-2002 17:46 |
| pbasic programming | punarhero | Programming | 4 | 21-01-2002 23:32 |