platform: move platform lib bits into platform module

This commit is contained in:
2024-10-30 20:54:49 +01:00
parent 1668db2c85
commit 84b5abce09
5 changed files with 11 additions and 9 deletions

View File

@@ -18,23 +18,17 @@ use crate::task::Task;
use crate::platform::DisplayInit;
use crate::lib8::IntoRgb8;
#[cfg(feature="embedded-graphics")]
mod embedded_graphics_lib;
#[cfg(feature="rmt")]
#[cfg(feature="embedded-graphics")]
use ws2812_esp32_rmt_driver::lib_embedded_graphics::PonderjarTarget;
#[cfg(feature="smart-leds")]
mod smart_leds_lib;
#[cfg(feature="rmt")]
#[cfg(feature="smart-leds")]
use ws2812_esp32_rmt_driver::lib_smart_leds::Ws2812Esp32Rmt;
#[cfg(feature="spi")]
#[cfg(feature="smart-leds")]
use crate::smart_leds_lib::spi::SPIDisplay;
use crate::platform::smart_leds_lib::spi::SPIDisplay;
#[cfg(feature="threads")]
use crate::render::SharedSurface;