Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set all channels simultanously in 5CH mode (AEGHB-551) #334

Open
3 tasks done
ninharp opened this issue Feb 8, 2024 · 1 comment
Open
3 tasks done

Set all channels simultanously in 5CH mode (AEGHB-551) #334

ninharp opened this issue Feb 8, 2024 · 1 comment

Comments

@ninharp
Copy link

ninharp commented Feb 8, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

How is it possible to set in 5 channel mode (LED_BEADS_5CH_RGBCW) to set all channels simultanously?

If i tried to set it via a two command combination for example lightbulb_set_hsv and lightbulb_set_cctb it stays on the last command issued and in a loop it looks like flashing. In my case for example i need the colors still enabled.

As i can see from the code it always sets the color array to 0 and change only the according parts (color, white) and then the colors or white values will be written as 0 instead to keep it original.

@github-actions github-actions bot changed the title Set all channels simultanously in 5CH mode Set all channels simultanously in 5CH mode (AEGHB-551) Feb 8, 2024
@shixinke-orion
Copy link
Contributor

shixinke-orion commented Feb 21, 2024

Hi @ninharp , i just ended my vacation, and I apologize for only seeing your question now. The driver treats CCT mode (displaying warm and cool light) and color mode (displaying colors like red, pink, etc.) as two mutually exclusive modes, which is why switching between lightbulb_set_hsv and lightbulb_set_cctb causes a mode change. Usually, CW (cold/warm white) LEDs are used for CCT mode, and RGB LEDs are used for color mode. Considering the need for mixing LED colors, I've made some attempts to support outputting color temperature using RGB+C LEDs in the LED_BEADS_5CH_RGBWW configuration, which requires setting up a mixing table at https://github.com/espressif/esp-iot-solution/blob/master/examples/lighting/lightbulb/main/app_main.c#L21C1-L21C30. I'm currently coding the color mixing configuration for LED_BEADS_5CH_RGBCW LEDs. If you have any other requirements, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants