WIP: Rust oled display #27
Generated
+1
@@ -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
@@ -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]
|
||||
|
||||
@@ -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