render: implement a generic Renderer task that can run any display

This commit is contained in:
2024-11-02 15:22:37 +01:00
parent 873954d596
commit dbfc79046e
5 changed files with 80 additions and 53 deletions

View File

@@ -5,8 +5,7 @@ pub mod embedded_graphics_lib;
pub mod smart_leds_lib;
use crate::render::{Surface, Display};
use crate::task::Task;
pub trait DisplayInit {
fn new_display<S: Surface>() -> impl Display<S> + Task;
fn new_display<S: Surface>() -> impl Display<S>;
}