Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

New modes #34

Merged
merged 16 commits into from
Dec 31, 2019
Merged

New modes #34

merged 16 commits into from
Dec 31, 2019

Conversation

jennytoo
Copy link
Contributor

  • New Fireflies mode. Similar in concept to Sparkle, but eases the LEDs in and out and runs several at a time on different timers with random timing.
  • New Saturation Fade mode. Similar idea to Color Wipe or Rainbow, fills the strip up with a solid color, applying a sine wave to the saturation channel resulting in a pleasing gradient between the given color and white. Shifts the alignment along the strip over the span of 1..10 seconds, configurable.

LarsMichelsen and others added 5 commits December 15, 2019 22:14
Since introducing the dynamic modes the initial mode was not taken
from the configuration. Instead the "Colour" mode was always used
* Added fireflies mode
* Add speed options for confetti, sparkle mode to the webpage (but
commented out as the speed limiter needs to be modified)
Fades between white and a fully saturation color.
@LarsMichelsen
Copy link
Collaborator

Cool effects. Both work for me :)

@jennytoo
Copy link
Contributor Author

Cool effects. Both work for me :)

Glad to hear that. I was a little worried I made errors during the cherry pick as I had to extract it from my main branch. :)

In previous versions the board kept runtime information per mode when
switching between modes. This could have odd effects, for example the
"color wipe" mode could be invisible for some time when it was in the
"fade out" phase when switching to the mode.

This change now separates the mode member variables into two categories:

Config: These are initialized with their default values at class level
once and need to be overridden with the applyConfig() method.

State: These are not allowed to be persisted with the config and may
change at any time during animation. They need to be initialized in the
initialize() method.
@thebigpotatoe
Copy link
Owner

Looks great. I'll have a play with them when I'm home after the Christmas period and merge them in.

@thebigpotatoe
Copy link
Owner

@jennytoo,

Lars has made some great changes to the New Modes with #36. We are refactoring how the modes will be sent to the website. If I get a chance to make these modes into the newer format I will, but for now I will hold off on merging these in until the new way of handling modes is complete.

@thebigpotatoe thebigpotatoe added the New Modes New mode requests label Dec 30, 2019
LarsMichelsen and others added 7 commits December 30, 2019 19:49
The device name was always "RGB WiFi Lamp" for my devices. Because
the name is available to the frontend with the settings websocket
message, this commit adds a small JS function that updates the
page title and logo area with the device name.
* Added fireflies mode
* Add speed options for confetti, sparkle mode to the webpage (but
commented out as the speed limiter needs to be modified)
Fades between white and a fully saturation color.
@thebigpotatoe
Copy link
Owner

Ended up re basing the pull with the master and added 2 lines. Nice and easy.

Modes work great, awesome stuff!

@thebigpotatoe
Copy link
Owner

Cleaned up some stuff as well. Merging it in.

@thebigpotatoe thebigpotatoe merged commit 02eb100 into thebigpotatoe:master Dec 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
New Modes New mode requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants