working mini display example

This commit is contained in:
2026-08-05 20:33:00 +02:00
parent e477462783
commit cfe1c6b11a
3 changed files with 7 additions and 8 deletions
+5 -5
View File
@@ -95,12 +95,12 @@ async fn main(_spawner: Spawner) {
loop {
log::info!("Init finished");
// let text_style = MonoTextStyle::new(&FONT_6X10, BinaryColor::On);
// Text::new("Hello OLED", Point::new(10, 20), text_style)
// .draw(&mut display)
// .unwrap();
let text_style = MonoTextStyle::new(&FONT_6X10, BinaryColor::On);
Text::new("Hello OLED", Point::new(10, 20), text_style)
.draw(&mut display)
.unwrap();
// display.flush().unwrap();
display.flush().unwrap();
Timer::after_millis(1000).await;
}
}