According to current code, the example smartlight uses the hsb2rgb() function, so it looks that the app should use the HSL/HSV color modulation. And the code should be updated accordingly.
Below code should be used and APP configuration should be updated.
1. 开发环境
git rev-parse --short HEAD
来获取 commit id):f5438e1541926133a77023ea8e37227e5259a183git rev-parse --short HEAD
来获取 commit id): https://dl.espressif.com/dl/esp-idf/releases/esp-idf-v3.2.zip2. 问题描述
smartlight cannot modify the RGB light as expect.
2.1 复现步骤
flash the bin and elf to flash, and change the color setting using the yunzhineng APP.
2.2 复现问题的代码
linkkit_solo.c Line163
3. 调试 Logs
4. 其他项
According to current code, the example
smartlight
uses thehsb2rgb()
function, so it looks that the app should use the HSL/HSV color modulation. And the code should be updated accordingly. Below code should be used and APP configuration should be updated.You could also refer to my repo linkkit_solo.c