mirror of
https://github.com/gunner47/GyverLamp.git
synced 2025-08-09 09:49:11 +03:00
upd
This commit is contained in:
@@ -118,7 +118,7 @@ boolean settChanged = false;
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
ESP.wdtDisable();
|
ESP.wdtDisable();
|
||||||
ESP.wdtEnable(WDTO_8S);
|
//ESP.wdtEnable(WDTO_8S);
|
||||||
delay(1000);
|
delay(1000);
|
||||||
// ЛЕНТА
|
// ЛЕНТА
|
||||||
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS)/*.setCorrection( TypicalLEDStrip )*/;
|
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS)/*.setCorrection( TypicalLEDStrip )*/;
|
||||||
|
@@ -2,10 +2,7 @@ uint32_t effTimer;
|
|||||||
|
|
||||||
void effectsTick() {
|
void effectsTick() {
|
||||||
if (!dawnFlag) {
|
if (!dawnFlag) {
|
||||||
int thisDelay;
|
if (ONflag && millis() - effTimer >= ((currentMode < 5) ? modes[currentMode].speed : 50) ) {
|
||||||
if (currentMode < 5) thisDelay = modes[currentMode].speed;
|
|
||||||
else thisDelay = 50;
|
|
||||||
if (ONflag && millis() - effTimer >= thisDelay) {
|
|
||||||
effTimer = millis();
|
effTimer = millis();
|
||||||
switch (currentMode) {
|
switch (currentMode) {
|
||||||
case 0: sparklesRoutine();
|
case 0: sparklesRoutine();
|
||||||
|
Reference in New Issue
Block a user