Home
last modified time | relevance | path

Searched refs:led (Results 1 – 10 of 10) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/led/
Dlv_led.c75 lv_led_t * led = (lv_led_t *)obj; in lv_led_set_color() local
76 led->color = color; in lv_led_set_color()
89 lv_led_t * led = (lv_led_t *)obj; in lv_led_set_brightness() local
90 if(led->bright == bright) return; in lv_led_set_brightness()
92 led->bright = LV_CLAMP(LV_LED_BRIGHT_MIN, bright, LV_LED_BRIGHT_MAX); in lv_led_set_brightness()
102 void lv_led_on(lv_obj_t * led) in lv_led_on() argument
104 lv_led_set_brightness(led, LV_LED_BRIGHT_MAX); in lv_led_on()
111 void lv_led_off(lv_obj_t * led) in lv_led_off() argument
113 lv_led_set_brightness(led, LV_LED_BRIGHT_MIN); in lv_led_off()
142 lv_led_t * led = (lv_led_t *)obj; in lv_led_get_brightness() local
[all …]
Dlv_led.h70 void lv_led_set_color(lv_obj_t * led, lv_color_t color);
77 void lv_led_set_brightness(lv_obj_t * led, uint8_t bright);
83 void lv_led_on(lv_obj_t * led);
89 void lv_led_off(lv_obj_t * led);
95 void lv_led_toggle(lv_obj_t * led);
/lvgl-3.7.0/docs/widgets/extra/
Dled.md13 You can set the color of the LED with `lv_led_set_color(led, lv_color_hex(0xff0080))`.
17 You can set their brightness with `lv_led_set_bright(led, bright)`. The brightness should be betwee…
20 Use `lv_led_on(led)` and `lv_led_off(led)` to set the brightness to a predefined ON or OFF value. T…
43 .. include:: ../../../examples/widgets/led/index.rst
Dindex.md14 led
/lvgl-3.7.0/examples/widgets/led/
Dlv_example_led_1.py6 led1 = lv.led(lv.scr_act())
11 led2 = lv.led(lv.scr_act())
17 led3 = lv.led(lv.scr_act())
Dindex.rst5 .. lv_example:: widgets/led/lv_example_led_1
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.py439 led = lv.led(led_h, None)
441 led.set_size(led_size, led_size)
442 led.off()
444 led = lv.led(led_h, led)
445 led.set_bright((LV_LED_BRIGHT_MAX - LV_LED_BRIGHT_MIN) // 2 + LV_LED_BRIGHT_MIN)
447 led = lv.led(led_h, led)
448 led.on()
/lvgl-3.7.0/
Dcomponent.mk24 src/extra/widgets/led \
/lvgl-3.7.0/src/extra/themes/default/
Dlv_theme_default.c149 lv_style_t led; member
630 style_init_reset(&styles->led); in style_init()
631 lv_style_set_bg_opa(&styles->led, LV_OPA_COVER); in style_init()
632 lv_style_set_bg_color(&styles->led, lv_color_white()); in style_init()
633 lv_style_set_bg_grad_color(&styles->led, lv_palette_main(LV_PALETTE_GREY)); in style_init()
634 lv_style_set_radius(&styles->led, LV_RADIUS_CIRCLE); in style_init()
635 lv_style_set_shadow_width(&styles->led, lv_disp_dpx(theme.disp, 15)); in style_init()
636 lv_style_set_shadow_color(&styles->led, lv_color_white()); in style_init()
637 lv_style_set_shadow_spread(&styles->led, lv_disp_dpx(theme.disp, 5)); in style_init()
1156 lv_obj_add_style(obj, &styles->led, 0); in theme_apply()
/lvgl-3.7.0/docs/
DCHANGELOG.md330 - fix(led): add bg_color draw descriptors back to led draw event to support LV_DRAW_COMPLEX 0 [`351…
967 - feat(led) send LV_EVENT_DRAW_PART_BEGIN/END [`fcd4aa3`](https://github.com/lvgl/lvgl/commit/fcd4a…
1113 - feat(led) send LV_EVENT_DRAW_PART_BEGIN/END [`fcd4aa3`](https://github.com/lvgl/lvgl/commit/fcd4a…
1253 - chore(led) expose LV_LED_BRIGHT_MIN/MAX in led.h [`3f18b23`](https://github.com/lvgl/lvgl/commit/…