Welcome to the API Reference Site for VEX EXP#
Discover everything you need to start coding with VEXcode EXP, using Blocks, Python, and C++. This guide will help you navigate the site and make the most of the available resources.
This API information applies when using either:
VEXcode by VEX Robotics
Visual Studio Code by Microsoft with the VEX Visual Studio Code Extension
API Sections#
How to Use the API Reference#
Choose Your Language: Decide whether you want to use Blocks, Python, or C++ for your project.
Browse or Search: Use the navigation menu or search bar to locate specific commands or blocks.
Read the Descriptions: Each API function includes a description that explains its purpose, parameters, and any important notes.
Review the Examples:
Blocks: Visual examples of blocks will help you understand how to use them in your projects.
Python: Code snippets show how to write commands in VEXcode EXP, with comments to explain each step:
# Move the Drivetrain forward for 500 MM. drivetrain.drive_for(FORWARD, 500, MM)
Experiment and Modify: Try out the example code in your projects. Modify it to fit your needs and observe the effects.
Tips for Success#
Start Simple: Begin with basic projects to get comfortable with VEXcode.
Read the API Reference: Explore the API reference to understand the available functions and their operations.
Practice Regularly: The more you code, the more proficient you’ll become with the platform.
Happy coding, and welcome to VEXcode EXP!
Available API Sections#
- Blocks
- Python
- Enums
- Accelerometer
- AddressableLed
- AiVision
- AnalogIn
- Arm
- Brain
- Bumper
- Color
- Competition
- Controller
- DigitalIn
- DigitalOut
- Distance
- DriveTrain
- Electromagnet
- Encoder
- Event
- Gyro
- Inertial
- Led
- Light
- Limit
- Line
- MessageLink
- Motor
- Motor29
- MotorGroup
- MotorVictor
- ObjectDetector
- Optical
- Pneumatic
- Potentiometer
- PotentiometerV2
- Pwm
- Rotation
- SerialLink
- Servo
- SignalTower
- SmartDrive
- Sonar
- Thread
- Triport
- Vision
- C++
- Enums
- accelerometer
- aivision
- analog_in
- arm
- brain
- bumper
- color
- competition
- controller
- digital_in
- digital_out
- distance
- drivetrain
- electromagnet
- encoder
- event
- gyro
- inertial
- led
- light
- limit
- line
- message_link
- motor
- motor29
- motor_group
- motor_victor
- objectdetector
- optical
- pneumatic
- pot
- potV2
- pwm_out
- rotation
- serial_link
- servo
- signaltower
- smartdrive
- sonar
- thread
- triport
- vision