Skip to main content

Crate status_led

Crate status_led 

Source
Expand description

Monochrome status LED abstraction for the embassy ecosystem.

Provides type-safe compile-time polarity (ActiveHigh / ActiveLow), optional PWM brightness with gamma correction, and FlexLed / FlexPwmLed for runtime-determined polarity.

Structs§

ActiveHigh
Active-high: LED is on when the pin is High (most common).
ActiveLow
Active-low: LED is on when the pin is Low (common on Nucleo, ESP32 boards).
FlexLed
LED with runtime-determined polarity.
Led
Monochrome LED with compile-time polarity.

Enums§

PolarityMode
Runtime polarity mode, for use with FlexLed / FlexPwmLed.

Traits§

Polarity
Compile-time logic-level polarity: maps logical ON/OFF to physical High/Low.