platform: move platform lib bits into platform module
This commit is contained in:
12
src/platform/mod.rs
Normal file
12
src/platform/mod.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
#[cfg(feature="embedded-graphics")]
|
||||
pub mod embedded_graphics_lib;
|
||||
|
||||
#[cfg(feature="smart-leds")]
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user