working mini display example
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user