render: effectively rename Display to Output, push remaining common code into Renderer task

This commit is contained in:
2024-11-29 18:13:22 +01:00
parent 5ca062adbd
commit bd2f2edebb
6 changed files with 131 additions and 129 deletions

View File

@@ -4,8 +4,9 @@ pub mod embedded_graphics_lib;
#[cfg(feature="smart-leds")]
pub mod smart_leds_lib;
use crate::render::{Surface, Display};
use crate::render::{Surface, Output};
pub trait DisplayInit {
fn new_display<S: Surface>() -> impl Display<S>;
type Output: Output;
fn new_display<S: Surface>() -> Self::Output;
}