28 lines
870 B
Rust
28 lines
870 B
Rust
use embedded_graphics::{
|
|
draw_target::DrawTarget as _,
|
|
pixelcolor::{Rgb565, RgbColor as _},
|
|
};
|
|
|
|
use crate::drivers::{
|
|
primary_lcd::PrimaryDisplay, secondary_oled::SecondaryDisplay, tertiary_lcd::TertiaryDisplay,
|
|
};
|
|
|
|
pub struct Outputs {
|
|
pub primary_display: PrimaryDisplay<'static>,
|
|
pub secondary_display_1: SecondaryDisplay<'static>,
|
|
pub secondary_display_2: SecondaryDisplay<'static>,
|
|
pub secondary_display_3: SecondaryDisplay<'static>,
|
|
pub tertiary_display: TertiaryDisplay<'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();
|
|
}
|
|
}
|