|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
|||||
|
|||||
|
Try this:
Declare nice_motor as a variable byte Then state that: nice_motor = 127 + (127*button1) - (127*button2) And of course, serout nice_motor to the desired PWM pin What will happen: If button 1 is pressed, the motor will go full forward, if button 0 is pressed, it'll go full reverse, and if you press them both (who would do that? ), nothing happens. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| variable? | manodrum | Programming | 11 | 01-04-2003 17:20 |
| Coupling the Chiaphua & a variable Drill output | Jeff Sharpe | Motors | 9 | 13-01-2003 20:21 |
| Variable Amperage in DC Circuit. How? | Jordan A. | Electrical | 4 | 01-11-2002 20:26 |
| Dashboard programs and the char variable | Ian W. | Programming | 13 | 26-06-2002 02:07 |
| what teams have a variable transmissions? | Greg Perkins | Technical Discussion | 4 | 06-03-2002 06:10 |