VEXcode EXP can access the data from an EXP Controller by referencing the buttons and joystick axes by their names.
Position and Names of Buttons and Joysticks
The image below shows the button and joystick names and locations. Buttons return values of:
- 1 - Pressed
- 0 - Not Pressed / Released
Each joystick axis returns a value between -100 to +100, and returns a value of zero when centered.
Blocks that include Controller Buttons and Joysticks
When programming in VEXcode EXP, understanding the button and joystick names, as well as their position on the Controller, helps determine which block should be used.
Once the Controller is configured, Controller blocks will be visible in the Toolbox.
For more information on using the Controller, see articles in the Controller section of the STEM Library.