Skip to main content

Module led4

Module led4 

Source
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§

AnimationFrame
Frame of animated text for Led4::animate_text.
Led4Esp
A device abstraction for a 4-digit, 7-segment LED display with blinking support.
Led4EspStatic
Static for the Led4Esp device.
OutputArray
Array of GPIO output pins for LED displays.

Enums§

BlinkState
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.