use std::time::Duration;
use vexide_core::program::{CodeSignature, ProgramOptions, ProgramOwner, ProgramType};
use vexide_devices::{
math::Direction,
peripherals::Peripherals,
smart::motor::{Gearset, Motor},
};
#[cfg_attr(target_os = "vexos", unsafe(link_section = ".code_signature"))]
#[used] #[unsafe(no_mangle)]
static __VEXIDE_CODE_SIGNATURE: CodeSignature = CodeSignature::new(
ProgramType::User,
ProgramOwner::Partner,
ProgramOptions::empty(),
);
fn main() {
unsafe {
vexide_startup::startup();
}
println!("Hey");
let peripherals = Peripherals::take().unwrap();
let mut m = Motor::new(peripherals.port_1, Gearset::Green, Direction::Forward);
_ = m.set_voltage(12.0);
std::thread::sleep(Duration::from_secs(5));
}