graphics: ssd1306: move init steps to new asyncn method

This commit is contained in:
2025-12-07 14:55:05 +01:00
parent 6123844cd7
commit 727e96a539
2 changed files with 15 additions and 8 deletions

View File

@@ -17,7 +17,9 @@ pub async fn oled_render(mut output: SsdOutput, surfaces: OledUiSurfacePool, uni
const ANIMATION_TPS: u64 = 30;
const ANIMATION_FRAME_TIME: Duration = Duration::from_millis(1000 / ANIMATION_TPS);
info!("Starting Oled renderer");
info!("Starting Oled display driver");
output.init().await?;
loop {
let start = Instant::now();
{