View Single Post
  #2   Spotlight this post!  
Unread 14-02-2008, 12:36
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
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.