1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#![no_std] #![no_main] use pros::prelude::*; #[derive(Default)] pub struct Robot; impl AsyncRobot for Robot { async fn opcontrol(&mut self) -> Result { println!("basic example"); Ok(()) } } async_robot!(Robot);