Files
tmp/examples/hello.rs
Lionel Sambuc ba09e87c1e stars, moon, trees, houses and snow
* Version of Family Christmas 2024
2024-12-28 08:27:33 +01:00

19 lines
412 B
Rust

#![no_main]
#![no_std]
// global logger + panicking-behavior + memory layout
use microbit::board::Board;
use microbit::hal::gpio::Level::High;
#[cortex_m_rt::entry]
fn main() -> ! {
let board = Board::take().unwrap();
board.display_pins.col1.into_pulldown_input();
board.display_pins.row1.into_push_pull_output(High);
defmt::println!("Hello, world! freq ",);
template_microbit::exit()
}