|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#8
|
||||||
|
||||||
|
Re: Mapping Buttons to PWMs
If you want to skip the if statement, you can use the following code
pwm03 = 127 + 63 * p1_sw_trig; If you want your motor to be able to go backwards also, you can use 2 switches with the following code. pwm03 = 127 + (63 * p1_sw_trig) - (63 * p1_sw_top); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |