Uso de ejemplos y plantillas#

Example projects are a great resource to explore different robot behaviors or how different blocks in VEXcode are used. Templates are blank projects with devices already configured, so if you’re using a robot build from builds.vex.com, you won’t need to configure the devices yourself.

Use an Example Project#

Open Examples#

Select File in the top-left of VEXcode, then select Open Examples.

Screenshot of the File menu open, with the Open Examples option highlighted.

Opening the Examples page will open a new project, so be sure to save any unsaved work in your current project first. If your project hasn’t been saved yet, select Save to save it before continuing.

Screenshot of the Unsaved Project Detected dialog, with the Save button highlighted.

Browse the Open Examples Page#

The Open Examples page shows all the available example projects.

Screenshot of the Open Examples page, showing the Project Language options and a grid of example projects with category filters.

Filter by Category#

Select one of the filters to narrow down the example projects shown, such as Drivetrain to only show example projects demonstrating how to code a Drivetrain.

Screenshot of the Open Examples page, with the Drivetrain filter highlighted and its matching example projects shown.

Create the Example Project#

Selecting an example project opens a screen where you can rename it and save it to your device. Select Save and Create Project to save the new project to your device.

Screenshot of the Open Example Project screen, with the Project Name field and the Save and Create Project button highlighted.

View the Example Project#

The project will open in VEXcode with code demonstrating the example already in the workspace. The robot will already be configured in the Devices menu, and a note in the workspace will explain what the project does and what device configuration to use with it.

Screenshot of an opened example project in VEXcode, showing the example's blocks in the workspace and a comment explaining the project.

Use a Template#

Select a Build#

Go to the Devices tab, then select Select a build.

Screenshot of the Devices tab, showing the Select a build button.

Choose Your Robot Build#

Select the robot build you are using.

Screenshot of the Select a build screen, showing a grid of available robot builds.

Choose a Build Variant#

If your build has different versions, select which version you’re using.

Screenshot of the Select a build screen, showing the Without Sensors and With Sensors variant options for the BaseBot build.

Confirm the Configuration#

VEXcode will show you all of the devices used with the build and what ports they’re connected to. Select Done to add this configuration to your project.

Screenshot of the Current Configuration screen, showing the build's devices and the Done button highlighted.

View the Configured Devices#

Those devices will now appear, configured in the Devices menu, ready to code with.

Screenshot of the Devices tab, showing the Drivetrain, TouchLED2, Optical3, Distance7, and Bumper8 devices added from the build.