#![no_std]
#![no_main]
#![feature(impl_trait_in_assoc_type)]
use panic_halt as _;
use arduino_hal::{ pins, I2c, Peripherals };
//use as5600::As5600;
use embassy_executor::Spawner;
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
let peripherals = Peripherals::take().unwrap();
let pins = pins!(peripherals);
let mut serial = arduino_hal::default_serial!(peripherals, pins, 115200);
// let i2c = I2c::new(
// peripherals.TWI,
// pins.d20.into_pull_up_input(),
// pins.d21.into_pull_up_input(),
// 50000,
// );
//
// let mut as5600 = As5600::new(i2c);
ufmt::uwriteln!(&mut serial, "Meow World!").unwrap();
// loop {
// let status = as5600.magnet_status().unwrap();
// ufmt::uwriteln!(&mut serial, "{:?}", u8::from(status)).unwrap_infallible();
// }
}