blob: 8a3eef06d72825438b0547dc05327148bca524c4 [file] [log] [blame]
#![no_std]
use core::fmt::Write;
use libtock::console::Console;
use libtock::result::TockResult;
use libtock::temperature;
#[libtock::main]
async fn main() -> TockResult<()> {
let mut console = Console::default();
let temperature = temperature::measure_temperature().await?;
writeln!(console, "Temperature: {}", temperature).map_err(Into::into)
}