firmware: Remove the c attempt of the firmware
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
finga 2023-06-07 21:13:56 +02:00
parent b9fea56014
commit 698965fcf7
20 changed files with 6 additions and 1432 deletions

View file

@ -0,0 +1,44 @@
use crate::{
assets::{ONDERS_ORG, SACRED_CHAO},
lcd::Lcd,
DefaultClock,
};
use atmega_hal::delay::Delay;
use embedded_hal::{blocking::delay::DelayUs, spi::FullDuplex};
use nb::block;
pub struct Splash;
impl Splash {
pub fn draw(&self, lcd: &mut Lcd) {
let mut delay = Delay::<DefaultClock>::new();
for (i, page) in SACRED_CHAO.iter().enumerate() {
lcd.move_cursor(31, 1 + i as u8);
delay.delay_us(5_u8);
lcd.cd.set_high();
for segment in page {
block!(lcd.spi.send(*segment)).unwrap();
}
delay.delay_us(5_u8);
lcd.cd.set_low();
}
for (i, page) in ONDERS_ORG.iter().enumerate() {
lcd.move_cursor(27, 6 + i as u8);
delay.delay_us(5_u8);
lcd.cd.set_high();
for segment in page {
block!(lcd.spi.send(*segment)).unwrap();
}
delay.delay_us(5_u8);
lcd.cd.set_low();
}
}
}