Copying Code Examples from the VEX API

The VEX API Reference site is a great place to learn about coding your robot using Python or C++. One particularly helpful feature is a one-click code copying system!

When exploring the documentation, you’ll find code examples with a Copy button in their top-right corner. Select this button to copy the example code, then you can paste it directly into VEXcode or VS Code! You can either run these examples as-is or experiment by modifying parameters to observe how your robot’s behavior changes.

What are some ways you might use the VEX API examples to improve your robotics project?

2 Likes