LED

Report on GitHub

A rendered indicator drawn as a glowing rectangle, controlled via lv_led_on, lv_led_off, and lv_led_set_brightness. Not tied to hardware.

LED brightness

Same hue, three different brightness values.

The brightness attribute scales how lit each LED appears, in the 0..255 range. With lower brightness the color darkens; with 255 it reaches the configured peak. The three LEDs share one color so the effect of brightness alone is visible.

LED color

Three LEDs lit in different hues via the color attribute.

The color attribute sets the LED's background, border, and shadow color together, so a single value drives the whole lit-bulb look. Brightness stays at the default here to isolate the effect of changing the color alone.

LED styling

Push the LED past its color attribute with border, outline, shadow, and shape.

The color attribute drives the base lit look, but the LED is still a base widget so the border / outline / shadow / radius stack all apply. The first LED keeps the round default with a ring outline + glow; the second uses a small radius to render as a square indicator with a hard border instead.

Last updated on

On this page