|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
Re: Help Programming Buttons
Those variables are not predefined in EasyC. You need to either define them as a local variable, if you are only using them in one function, or globally if you use it in several functions.
Most likely you want to have them available anywhere in the program, so define them globally. Press F6 to pop up the global variables section and add a variable to the list at the bottom. Probably you will want an 'unsigned char', as joysticks use 0-255, but you may want an 'int' if you plan to do math on the value and the variable may end up holding a negative value. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PLEASE HELP!! Need help programming arm?? | amirjpl | Programming | 12 | 15-03-2007 15:11 |
| Programming Extra Joystick Buttons | Inverted | Programming | 2 | 08-02-2007 11:45 |
| Buttons, Buttons and more Buttons (2006) | Freddy Schurr | Team Organization | 11 | 14-12-2005 21:36 |
| Programming motors with joystick buttons | TMHStitans | Programming | 5 | 21-03-2005 21:07 |
| Looking for some help with buttons and pins... | Amanda Morrison | General Forum | 4 | 26-02-2003 17:32 |