Skip to main content

Module led4

Module led4 

Source
Available on target_os=none only.
Expand description

A device abstraction for a 4-digit, 7-segment LED display for text with optional animation and blinking.

See Led4 for the primary text/blinking example and Led4::animate_text for the animation example.

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. See that method’s example for usage.
Led4
A device abstraction for a 4-digit, 7-segment LED display with blinking support.
Led4Static
Static for the Led4 device.
OutputArray
Array of GPIO output pins for LED displays.

Enums§

BlinkState
Blinking behavior for 4-digit LED displays.

Functions§

circular_outline_animation
Creates a circular outline animation that chases around the edges of the display.