ws2812_esp32_rmt_driver/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![doc = include_str!("../README.md")]

#[cfg(all(not(feature = "std"), feature = "alloc"))]
extern crate alloc;

pub mod driver;

pub use driver::{Ws2812Esp32RmtDriver, Ws2812Esp32RmtDriverError};

#[cfg(feature = "embedded-graphics-core")]
pub mod lib_embedded_graphics;

#[cfg(feature = "smart-leds-trait")]
pub mod lib_smart_leds;

#[cfg(not(target_vendor = "espressif"))]
pub mod mock;

#[cfg(feature = "smart-leds-trait")]
pub use lib_smart_leds::{LedPixelEsp32Rmt, Ws2812Esp32Rmt, RGBW8};
#[cfg(feature = "smart-leds-trait")]
pub use smart_leds_trait::RGB8;