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

Add light palette support #8150

Merged
merged 1 commit into from
Apr 13, 2020
Merged

Add light palette support #8150

merged 1 commit into from
Apr 13, 2020

Conversation

pcdiem
Copy link
Contributor

@pcdiem pcdiem commented Apr 13, 2020

Description:

Light palette support adds the ability to specify a palette of colors to use instead of the standard color wheel and fixed colors. The Palette command specifies the list of colors to use. The list is allocated dynamically and is not stored in the settings so it is not preserved across restarts. Once a palette is specified, the Color<1,2> and Scheme<2,3,4> commands use the colors in the palette. The palette is cleared using the Palette 0 command.

Commands

Command Parameters
Palette 0 = Clear the color palette
<color>[ ...] = Set the list of colors to be used by the Color<1,2> and Scheme<2,3,4> commands with each color separated by a space

Checklist:

  • The pull request is done against the latest dev branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR.
  • The code change is tested and works on core Tasmota_core_stage
  • The code change pass travis tests. Your PR cannot be merged unless tests pass
  • I accept the CLA.

@s-hadinger
Copy link
Collaborator

Nice. I understand that you are not consuming any space in Settings, hence you need to set again palette after reboot. I prefer it this way.

@arendst arendst merged commit b486f2b into arendst:development Apr 13, 2020
arendst added a commit that referenced this pull request Apr 13, 2020
Add command ``Palette`` to add the ability to specify a palette of colors (#8150)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants