About colorwheel updates,bug?

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the FAQ and read the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Description

version:LVGL8.10

colorwheel use the lv_colorwheel_set_hsv

In LV_COLORWHEEL_MODE_SATURATION mode. Change Hue by pressing btn.
The knob’color changes right, but its main color does not change.

What MCU/Processor/Board and compiler are you using?

What LVGL version are you using?

v8.1.0-dev

What do you want to achieve?

What have you tried so far?

Compared version 7.10 and version 8.10, version 7.10 is OK, and I don’t know why version 8.10 can’t be implemented.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

lv_obj_t* cw;
uint16_t Test;

static void event_handler(lv_event_t* e)
{
lv_event_code_t code = lv_event_get_code(e);
if (code == LV_EVENT_CLICKED) {
LV_LOG_USER(“Clicked”);
lv_color_hsv_t hsv_cur;
if (Test < 360)
Test = Test + 10;
else
Test = 0;
hsv_cur.h = Test;
hsv_cur.s = 100;
hsv_cur.v = 100;
lv_colorwheel_set_hsv(cw, hsv_cur);
}
}

void lv_example_colorwheel_1(void)
{
cw = lv_colorwheel_create(lv_scr_act(), true);
lv_obj_set_size(cw, 240, 240);
lv_obj_center(cw);
lv_colorwheel_set_mode(cw, LV_COLORWHEEL_MODE_SATURATION);

lv_obj_t* btn1 = lv_btn_create(lv_scr_act());
lv_obj_add_event_cb(btn1, event_handler, LV_EVENT_CLICKED, NULL);
lv_obj_align(btn1, LV_ALIGN_CENTER, 0, 0);
lv_obj_set_size(btn1, 40, 40);

}

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

@kisvegabor Hello, can you help me, Thank you

Hi,

I’ve fixed it in both master and release/v8.3 branches.

OK,Thank you very much.