Expand description
A device abstraction for a 4-digit, 7-segment LED display for text with optional animation and blinking.
See Led4Esp for the primary text/blinking example and Led4 for trait methods.
Limations: You can create up to two concurrent Led4Esp instances per program; a third is expected to fail at runtime because the led4 task pool uses pool_size = 2. Animation APIs support up to 16 steps per animation (ANIMATION_MAX_FRAMES).
This module provides device abstraction for controlling common-cathode 4-digit 7-segment LED displays. Supports displaying text and numbers with optional blinking.
Structs§
- Animation
Frame - Frame of animated text for
Led4::animate_text. - Led4Esp
- A device abstraction for a 4-digit, 7-segment LED display with blinking support.
- Led4
EspStatic - Static for the
Led4Espdevice. - Output
Array - Array of GPIO output pins for LED displays.
Enums§
- Blink
State - Blinking behavior for 4-digit LED displays.
Constants§
- ANIMATION_
MAX_ FRAMES - Maximum number of animation frames accepted by led4-style APIs.
Traits§
- Led4
- Platform-agnostic 4-digit display contract.
Functions§
- circular_
outline_ animation - Creates a circular outline animation that chases around display edges.