render: implement surface mapping api
This commit is contained in:
@@ -10,6 +10,7 @@ mod mappings;
|
||||
|
||||
use crate::platform::DisplayInit;
|
||||
use crate::render::Surfaces;
|
||||
use crate::geometry::Rectangle;
|
||||
|
||||
#[cfg(feature="embedded-graphics")]
|
||||
#[cfg(feature="rmt")]
|
||||
@@ -47,8 +48,8 @@ fn main() {
|
||||
|
||||
log::info!("Creating runner");
|
||||
let mut runner = task::Scheduler::new(vec![
|
||||
Box::new(animations::IdleTask::new(display.new_surface().unwrap())),
|
||||
Box::new(animations::TestPattern::new(display.new_surface().unwrap())),
|
||||
Box::new(animations::IdleTask::new(display.new_surface(&Rectangle::everything()).unwrap())),
|
||||
Box::new(animations::TestPattern::new(display.new_surface(&Rectangle::everything()).unwrap())),
|
||||
Box::new(Renderer::new(display)),
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user