W5KJLT2YQYOOXASK7T2HWQU7I4Q3WV5H3FATQUORZD43ZZNFYARAC
embassy-stm32 = { git = "https://github.com/embassy-rs/embassy.git", features = ["time-driver-any", "stm32f303cb", "unstable-pac", "memory-x", "nightly", "unstable-traits"] }
embassy-stm32 = { git = "https://github.com/embassy-rs/embassy.git", features = ["time-driver-any", "stm32f303vc", "unstable-pac", "memory-x", "nightly", "unstable-traits", "defmt"] }
#[embassy::main]
fn config() -> Config {
let mut config = Config::default();
config.rcc.hse = Some(32.mhz().into());
config.rcc.sysclk = Some(72.mhz().into());
config.rcc.pclk1 = Some(24.mhz().into());
config.rcc.pll48 = true;
config
}
#[embassy::main(config = "config()")]
leds.set_all(counter).await;
counter += 1;
Timer::after(Duration::from_millis(250)).await;
matrix.update().await;
Timer::after(Duration::from_millis(10)).await;
if let Some(KeyEvent::Pressed(e)) = matrix.update().await.map(|e| e[0]) {
leds.set_all(e as u8).await;
}
// Note: Some of the functionality here should get factored out into a trait if more RGB matrix chips get added
pub struct Is31fl3731<I2C> {
i2c: I2C,
}