full -> breathing
This commit is contained in:
parent
6097acddcc
commit
edc1326d87
@ -381,7 +381,7 @@ void ledError()
|
|||||||
* Pour éviter un éclairage basique, on applique un breath qui permet
|
* Pour éviter un éclairage basique, on applique un breath qui permet
|
||||||
* de faire respirer la couleur (brightness).
|
* de faire respirer la couleur (brightness).
|
||||||
*/
|
*/
|
||||||
void ledFullColor()
|
void ledBreathing()
|
||||||
{
|
{
|
||||||
|
|
||||||
// Source : http://sean.voisen.org/blog/2011/10/breathing-led-with-arduino/
|
// Source : http://sean.voisen.org/blog/2011/10/breathing-led-with-arduino/
|
||||||
@ -583,9 +583,8 @@ void loop() {
|
|||||||
} else {
|
} else {
|
||||||
if (ledEffect == LED_EFFECT_CYLON) {
|
if (ledEffect == LED_EFFECT_CYLON) {
|
||||||
ledCylon();
|
ledCylon();
|
||||||
} else if (ledEffect == LED_EFFECT_FULLRED) {
|
} else if (ledEffect == LED_EFFECT_BREATHING) {
|
||||||
//TODO : degager ce nom : LED_EFFECT_FULLRED
|
ledBreathing();
|
||||||
ledFullColor();
|
|
||||||
} else if (ledEffect == LED_EFFECT_COLORPATTERN) {
|
} else if (ledEffect == LED_EFFECT_COLORPATTERN) {
|
||||||
ledColorPattern();
|
ledColorPattern();
|
||||||
} else if (ledEffect == LED_EFFECT_COLORTEMP) {
|
} else if (ledEffect == LED_EFFECT_COLORTEMP) {
|
||||||
|
|||||||
@ -19,7 +19,7 @@ RemoteDebug Debug;
|
|||||||
#define LED_EFFECT_COLORPATTERN "colorp"
|
#define LED_EFFECT_COLORPATTERN "colorp"
|
||||||
#define LED_EFFECT_COLORTEMP "colort"
|
#define LED_EFFECT_COLORTEMP "colort"
|
||||||
#define LED_EFFECT_FIRE "fire"
|
#define LED_EFFECT_FIRE "fire"
|
||||||
#define LED_EFFECT_FULLRED "full"
|
#define LED_EFFECT_BREATHING "breathing"
|
||||||
#define LED_EFFECT_ERROR "error"
|
#define LED_EFFECT_ERROR "error"
|
||||||
|
|
||||||
// WIFI
|
// WIFI
|
||||||
@ -56,7 +56,7 @@ void mqttSendColorState();
|
|||||||
void ledBlackAll();
|
void ledBlackAll();
|
||||||
void ledCylon();
|
void ledCylon();
|
||||||
void ledError();
|
void ledError();
|
||||||
void ledFullColor();
|
void ledBreathing();
|
||||||
///////////////////////////////// ColorPalette
|
///////////////////////////////// ColorPalette
|
||||||
// This example shows several ways to set up and use 'palettes' of colors
|
// This example shows several ways to set up and use 'palettes' of colors
|
||||||
// with FastLED.
|
// with FastLED.
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
- "colorp"
|
- "colorp"
|
||||||
- "colort"
|
- "colort"
|
||||||
- "fire"
|
- "fire"
|
||||||
- "full"
|
- "breathing"
|
||||||
- "error"
|
- "error"
|
||||||
command_topic: "strip1/switch"
|
command_topic: "strip1/switch"
|
||||||
state_topic: "strip1/status"
|
state_topic: "strip1/status"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user