# LED (/examples/widgets/led)



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.

Three LEDs at different brightness [#three-leds-at-different-brightness]

<LvglExampleBrief>
  One LED off, one dimmed red at mid brightness, and one fully on.
</LvglExampleBrief>

Three `lv_led` objects are placed left of centre, at centre, and
right of centre. The first is turned off with `lv_led_off`, the
second is tinted red via `lv_led_set_color` and dimmed to
brightness 150 with `lv_led_set_brightness`, and the third is
switched on with `lv_led_on`.

<LvglExample name="lv_example_led_1" path="widgets/led/lv_example_led_1" />
