Open-source Rust runtime for VEX robots.
vexide provides a safe and efficient runtime and toolchain for writing VEX V5 programs in the Rust Programming Language. 🦀
main.rs
#[vexide::main]
async fn main(peripherals: Peripherals) {
// Create a green motor on port 1.
let my_motor = Motor::new(
peripherals.port_1,
Gearset::Green,
Direction::Forward,
);
// Spin the motor at 10 volts!
my_motor.set_voltage(10.0).ok();
}
Fall Updates: vexide 0.4.0, cargo-v5 0.8.0, Simulator, Docs, and more!
Important project updates for Fall 2024!