|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Joystick Button programming
Hi guys,
I have run into a sort of stupid problem. I can't get the buttons on the joystick to work. Code:
if (p1_sw_top ==1)
{
pwm01=200;
}
Code:
//Somewhere in the top of the file
int output =0;
//Down in the file
output = p1_sw_top;
if (output = 1)
{
pwm01=200;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming motors with joystick buttons | TMHStitans | Programming | 5 | 21-03-2005 21:07 |
| Joystick Button Deference | cibressus53 | Electrical | 3 | 01-11-2004 09:38 |
| single joystick programming | Bill Bonsky | OCCRA | 2 | 04-10-2003 09:47 |
| Programming the second joystick in PBASIC | archiver | 2001 | 2 | 24-06-2002 00:25 |
| Arm Rotation (1 Button Programming!!) | Joelster | Technical Discussion | 1 | 14-02-2002 13:15 |