Skip to main content

status_led/
lib.rs

1#![no_std]
2#![doc = "Monochrome status LED abstraction for the embassy ecosystem.\n\nProvides polarity via [`PolarityMode`], optional PWM brightness with\ngamma correction."]
3
4mod brightness;
5mod led;
6
7#[cfg(feature = "pwm")]
8pub mod pwm;
9
10#[cfg(feature = "breath")]
11pub mod breath;
12
13pub use led::{Led, PolarityMode};
14
15#[cfg(feature = "pwm")]
16pub use pwm::{GammaCorrection, GammaMap, PwmLed};
17
18#[cfg(feature = "breath")]
19pub use breath::Breath;
20
21#[cfg(feature = "breath")]
22pub use breath::BreathLed;