Can someone tell me, why I can´t change the timer interval from the timer, which calls Func_Mode_4 ???
The other loops should be called every 100ms, I only want to be able to adjust the interval to call void Func_Mode_4(){} with a slider widget on V26.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxx";
int timerBlinker = 1;
int varBlinker = 0;
int BlinkValue = 0;
BlynkTimer timer;
WidgetLCD lcd (V101); //LCD Widget attached to Pin V101
WidgetLED led (V100); //LED Widget attached to Pin V100
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode (LedPinD1, OUTPUT);
timer.setInterval(100L, Func_Mode_1); //LED-Switch
timer.setInterval(100L, Func_Mode_2); //LED-Dimmer
timer.setInterval(100L, Func_Mode_3); //LED-Szene
timerBlinker = timer.setInterval(100L, Func_Mode_4); //LED-Blinker
}
void loop()
{
Blynk.run();
timer.run();
}
BLYNK_WRITE(V26) //Slider BlinkValue
{
BlinkValue = param.asInt();
timer.deleteTimer(timerBlinker);
timerBlinker = timer.setInterval(BlinkValue*1000L, Func_Mode_4);
}
void Func_Mode_1() {
}
void Func_Mode_2() {
}
void Func_Mode_3() {
}
void Func_Mode_4() {
}
The problem is, that the interval from the loop Func_Mode_4 remains usually the same, also if I adjust the slider