fw-rust: Use DefaultClock type alias everywhere
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
finga 2022-04-02 18:48:23 +02:00
parent b51511dbab
commit 791a0a0245
3 changed files with 15 additions and 15 deletions

View file

@ -1,8 +1,9 @@
use crate::{
assets::{ONDERS_ORG, SACRED_CHAO},
lcd::Lcd,
DefaultClock,
};
use atmega_hal::{clock::MHz8, delay::Delay};
use atmega_hal::delay::Delay;
use embedded_hal::{blocking::delay::DelayMs, spi::FullDuplex};
use nb::block;
@ -10,7 +11,7 @@ pub struct Splash;
impl Splash {
pub fn draw(&self, lcd: &mut Lcd) {
let mut delay = Delay::<MHz8>::new();
let mut delay = Delay::<DefaultClock>::new();
for (i, page) in SACRED_CHAO.iter().enumerate() {
lcd.move_cursor(31, 1 + i as u8);