Start candle animation by long touch from standby
This is more a feature request than a pull request.
BLE remote control is a very nice feature, but in daily use, the leaf is faster and more convenient. As we like the new candle animation very much, it would be nice to start the Floower in candle mode by just touching the leaf.
The pull request shows one (actually tested and used) way to activate the candle by a long touch from standby, but in exchange for the rainbow color picker. It would be nice to see an option to activate the candle by touch in the next release 😄
Hi, thank you for your pull request! It's awesome. Few questions though before I merge it.
So you disabled the rainbow color picker when Floower is in standby mode in favor of the candle mode? The reason for rainbow mode is to be able to light up the Floower with your favorite color right from the start-up (requested feature). So the candle mode kinda broke this. I was thinking of something like a double touch to enable candle mode. What do you think?
I just recalled that I am planning on doing preset "behaviors" so this would be the perfect first one. You can then choose the behavior from the mobile app and the Floower will behave always like that until you change it again. So I can introduce a Candle behavior where the Floower will start candle light on the first touch. What do you think?
So the candle mode kinda broke this. I was thinking of something like a double touch to enable candle mode. What do you think?
Hi, you are right, my implementation broke the rainbow start-up for the candle. I implemented it this way because it was the easiest way.
But I would absolutely prefer to have both rainbow and candle start-up options. Double touch for the candle, as you suggested, seems to be the best solution here, but after looking at the code, a double touch is harder to implement. I think there would have to be a timeout after single touches before the callback fires to wait for a possible double touch event.
So I can introduce a Candle behavior where the Floower will start candle light on the first touch. What do you think?
That sounds like a nice solution too! I like the idea of behaviors.