Initial Setup for the microbit v1
This commit is contained in:
20
examples/levels.rs
Normal file
20
examples/levels.rs
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user