platform: move platform lib bits into platform module
This commit is contained in:
parent
1668db2c85
commit
84b5abce09
@ -8,3 +8,5 @@
|
|||||||
[ ] Weather
|
[ ] Weather
|
||||||
[ ] Circadian Rhythm
|
[ ] Circadian Rhythm
|
||||||
[ ] NTP
|
[ ] NTP
|
||||||
|
[ ] Config to only start a subset of tasks on startup
|
||||||
|
[ ] Serial CLI
|
||||||
|
@ -18,23 +18,17 @@ use crate::task::Task;
|
|||||||
use crate::platform::DisplayInit;
|
use crate::platform::DisplayInit;
|
||||||
use crate::lib8::IntoRgb8;
|
use crate::lib8::IntoRgb8;
|
||||||
|
|
||||||
#[cfg(feature="embedded-graphics")]
|
|
||||||
mod embedded_graphics_lib;
|
|
||||||
|
|
||||||
#[cfg(feature="rmt")]
|
#[cfg(feature="rmt")]
|
||||||
#[cfg(feature="embedded-graphics")]
|
#[cfg(feature="embedded-graphics")]
|
||||||
use ws2812_esp32_rmt_driver::lib_embedded_graphics::PonderjarTarget;
|
use ws2812_esp32_rmt_driver::lib_embedded_graphics::PonderjarTarget;
|
||||||
|
|
||||||
#[cfg(feature="smart-leds")]
|
|
||||||
mod smart_leds_lib;
|
|
||||||
|
|
||||||
#[cfg(feature="rmt")]
|
#[cfg(feature="rmt")]
|
||||||
#[cfg(feature="smart-leds")]
|
#[cfg(feature="smart-leds")]
|
||||||
use ws2812_esp32_rmt_driver::lib_smart_leds::Ws2812Esp32Rmt;
|
use ws2812_esp32_rmt_driver::lib_smart_leds::Ws2812Esp32Rmt;
|
||||||
|
|
||||||
#[cfg(feature="spi")]
|
#[cfg(feature="spi")]
|
||||||
#[cfg(feature="smart-leds")]
|
#[cfg(feature="smart-leds")]
|
||||||
use crate::smart_leds_lib::spi::SPIDisplay;
|
use crate::platform::smart_leds_lib::spi::SPIDisplay;
|
||||||
|
|
||||||
#[cfg(feature="threads")]
|
#[cfg(feature="threads")]
|
||||||
use crate::render::SharedSurface;
|
use crate::render::SharedSurface;
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
#[cfg(feature="embedded-graphics")]
|
||||||
|
pub mod embedded_graphics_lib;
|
||||||
|
|
||||||
|
#[cfg(feature="smart-leds")]
|
||||||
|
pub mod smart_leds_lib;
|
||||||
|
|
||||||
use crate::render::{Surface, Display};
|
use crate::render::{Surface, Display};
|
||||||
use crate::task::Task;
|
use crate::task::Task;
|
||||||
|
|
@ -95,7 +95,7 @@ pub mod rmt {
|
|||||||
|
|
||||||
use crate::render::{Display, Surface};
|
use crate::render::{Display, Surface};
|
||||||
use crate::task::Task;
|
use crate::task::Task;
|
||||||
use crate::smart_leds_lib::SmartLedDisplay;
|
use crate::platform::smart_leds_lib::SmartLedDisplay;
|
||||||
|
|
||||||
use crate::platform::DisplayInit;
|
use crate::platform::DisplayInit;
|
||||||
impl DisplayInit for Ws2812Esp32Rmt<'_> {
|
impl DisplayInit for Ws2812Esp32Rmt<'_> {
|
||||||
@ -121,7 +121,7 @@ pub mod spi {
|
|||||||
|
|
||||||
use crate::render::{Display, Surface};
|
use crate::render::{Display, Surface};
|
||||||
use crate::task::Task;
|
use crate::task::Task;
|
||||||
use crate::smart_leds_lib::SmartLedDisplay;
|
use crate::platform::smart_leds_lib::SmartLedDisplay;
|
||||||
|
|
||||||
use esp_idf_svc::hal::{
|
use esp_idf_svc::hal::{
|
||||||
prelude::*,
|
prelude::*,
|
Loading…
x
Reference in New Issue
Block a user