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§
- Active
High - Active-high: LED is on when the pin is High (most common).
- Active
Low - 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§
- Polarity
Mode - Runtime polarity mode, for use with
FlexLed/FlexPwmLed.
Traits§
- Polarity
- Compile-time logic-level polarity: maps logical ON/OFF to physical High/Low.