main: rewrite display creation code to use type aliases and fewer cfg branches

This commit is contained in:
2024-10-30 21:56:03 +01:00
parent 0a28f9f5c6
commit 8662eb0db7
2 changed files with 12 additions and 73 deletions

View File

@ -123,6 +123,7 @@ pub mod spi {
use crate::render::{Display, Surface};
use crate::task::Task;
use crate::platform::smart_leds_lib::SmartLedDisplay;
use crate::DisplayInit;
use esp_idf_svc::hal::{
prelude::*,