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
Generated
+1
View File
@@ -232,6 +232,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "ch1115"
version = "0.1.2"
source = "git+https://github.com/ede1998/ch1115.git?rev=2d3a3ba38050efe012e6a210afe3e125ec280c37#2d3a3ba38050efe012e6a210afe3e125ec280c37"
dependencies = [
"display-interface",
"embedded-graphics-core",
+1 -3
View File
@@ -48,9 +48,7 @@ embedded-hal-compat = "0.13.0"
[patch.crates-io]
ch1115 = { path = "./ch1115" }
ch1115 = { git = "https://github.com/ede1998/ch1115.git", rev = "2d3a3ba38050efe012e6a210afe3e125ec280c37" }
# For fine tuning these settings, please refer to https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.dev]
+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;
}
}