[lvgl] Rework events to avoid feedback loops (#7262)

This commit is contained in:
Clyde Stubbs
2024-08-14 12:05:25 +10:00
committed by GitHub
parent a5fdcb31fc
commit a0eff08f39
14 changed files with 108 additions and 29 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class LVLight : public light::LightOutput {
void set_value_(lv_color_t value) {
lv_led_set_color(this->obj_, value);
lv_led_on(this->obj_);
lv_event_send(this->obj_, lv_custom_event, nullptr);
lv_event_send(this->obj_, lv_api_event, nullptr);
}
lv_obj_t *obj_{};
optional<lv_color_t> initial_value_{};