Use Outputs type in Navigable trait
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
use crate::display::{shared_bus::{DualPrimaryDisplay, DualSecondaryDisplay}, tertiary_lcd::TertiaryI2cLcd};
|
||||
|
||||
use embedded_graphics::{
|
||||
draw_target::DrawTarget as _,
|
||||
pixelcolor::{Rgb565, RgbColor as _},
|
||||
};
|
||||
|
||||
use crate::display::{
|
||||
shared_bus::{DualPrimaryDisplay, DualSecondaryDisplay},
|
||||
tertiary_lcd::TertiaryI2cLcd,
|
||||
};
|
||||
|
||||
pub struct Outputs {
|
||||
pub primary_display: DualPrimaryDisplay<'static>,
|
||||
@@ -9,4 +15,14 @@ pub struct Outputs {
|
||||
// pub secondary_display_3: DualSecondaryDisplay<'static>,
|
||||
pub tertiary_display: TertiaryI2cLcd<'static>,
|
||||
pub _led_a: (),
|
||||
}
|
||||
}
|
||||
|
||||
impl Outputs {
|
||||
pub fn clear_screens(&mut self) {
|
||||
self.primary_display.clear(Rgb565::BLACK).unwrap();
|
||||
self.secondary_display_1.clear().unwrap();
|
||||
// self.secondary_display_2.clear().unwrap();
|
||||
// self.secondary_display_3.clear().unwrap();
|
||||
self.tertiary_display.clear().unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user