Crate vexide

Crate vexide 

Source
Expand description

§vexide

Open-source Rust runtime for VEX V5 robots. vexide provides a runtime, async executor, hardware APIs, and more for the VEX V5 Brain!

§Getting Started

To start using vexide, we recommend going through our docs, which contain step-by-step instructions for setting up a development environment using vexide-template and tutorials for many of vexide’s common features.

§Usage

To to get a program running, use the #[vexide::main] attribute on your main function.

use vexide::prelude::*;

#[vexide::main]
async fn main(_peripherals: Peripherals) {
    println!("Hello, world!");
}

Check out our examples for more examples of different features.

Modules§

adidevices
Analog/digital interface (ADI) ports and devices.
batterydevices
Robot battery information.
colordevices
Color type for devices and graphics.
competitioncore
Competition control and state.
controllerdevices
Functionality for VEX controllers.
displaydevices
Display and touchscreen input.
mathdevices
Math-related container types.
oscore
VEXos-related functionality.
peripheralsdevices
Access to a Brain’s peripherals.
prelude
Commonly used features of vexide.
programcore
User program state.
runtimeasync
Async runtime and executor.
smartdevices
Smart ports and devices.
syncsync
Synchronization primitives for async code.
taskasync
Asynchronous multitasking.
timecore or async
Utilities for tracking time.