graphics: ssd1306: move init steps to new asyncn method
This commit is contained in:
@@ -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();
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user