Initial Setup for the microbit v1

This commit is contained in:
2024-10-11 20:01:36 +02:00
commit e70e2b2104
37 changed files with 22320 additions and 0 deletions

20
examples/levels.rs Normal file
View File

@@ -0,0 +1,20 @@
#![no_main]
#![no_std]
use template_microbit as _;
use template_microbit::exit;
// global logger + panicking-behavior + memory layout
#[cortex_m_rt::entry]
fn main() -> ! {
// try setting the DEFMT_LOG environment variable
// e.g. `export DEFMT_LOG=info` or `DEFMT_LOG=trace cargo rb levels`
defmt::info!("info");
defmt::trace!("trace");
defmt::warn!("warn");
defmt::debug!("debug");
defmt::error!("error");
exit();
template_microbit::exit()
}