main: emojify boot output
This commit is contained in:
parent
8bb46b6f78
commit
457ae73c50
16
src/main.rs
16
src/main.rs
@ -21,21 +21,23 @@ use crate::geometry::Rectangle;
|
|||||||
fn main() {
|
fn main() {
|
||||||
let mut board: DefaultBoard = Board::take();
|
let mut board: DefaultBoard = Board::take();
|
||||||
|
|
||||||
log::info!("Board: {}", core::any::type_name_of_val(&board));
|
log::info!("🐛 Booting Renderbug!");
|
||||||
|
|
||||||
log::info!("Creating tasks");
|
log::info!("📡 Board {}", core::any::type_name_of_val(&board));
|
||||||
|
|
||||||
|
log::info!("⚙️ Creating tasks");
|
||||||
let mut system = board.system_tasks();
|
let mut system = board.system_tasks();
|
||||||
log::info!("System scheduler: {}", core::any::type_name_of_val(&system));
|
log::info!("⏰ System scheduler: {}", core::any::type_name_of_val(&system));
|
||||||
|
|
||||||
log::info!("Creating output");
|
log::info!("💡 Creating output");
|
||||||
let output = board.output();
|
let output = board.output();
|
||||||
log::info!("Output: {}", core::any::type_name_of_val(&output));
|
log::info!("Output: {}", core::any::type_name_of_val(&output));
|
||||||
|
|
||||||
log::info!("Preparing surfaces");
|
log::info!("🎨 Preparing surfaces");
|
||||||
let mut surfaces = board.surfaces();
|
let mut surfaces = board.surfaces();
|
||||||
log::info!("Surface implementation: {}", core::any::type_name_of_val(&output));
|
log::info!("Surface implementation: {}", core::any::type_name_of_val(&output));
|
||||||
|
|
||||||
log::info!("Creating animations");
|
log::info!("🌌 Creating animations");
|
||||||
let mut animations = FixedSizeScheduler::new([
|
let mut animations = FixedSizeScheduler::new([
|
||||||
Box::new(animations::IdleTask::new(&mut surfaces)),
|
Box::new(animations::IdleTask::new(&mut surfaces)),
|
||||||
Box::new(animations::TestPattern::new(surfaces.new_surface(&Rectangle::everything()).unwrap())),
|
Box::new(animations::TestPattern::new(surfaces.new_surface(&Rectangle::everything()).unwrap())),
|
||||||
@ -43,7 +45,7 @@ fn main() {
|
|||||||
|
|
||||||
let mut renderer = FixedSizeScheduler::new([Box::new(Renderer::new(output, surfaces))]);
|
let mut renderer = FixedSizeScheduler::new([Box::new(Renderer::new(output, surfaces))]);
|
||||||
|
|
||||||
log::info!("Starting event bus");
|
log::info!("🚌 Starting event bus");
|
||||||
let mut bus = EventBus::new();
|
let mut bus = EventBus::new();
|
||||||
|
|
||||||
log::info!("Ready to rock and roll");
|
log::info!("Ready to rock and roll");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user