Timer widget issue

hi there
im trying to setup a timer
the timer are set to v7
to test it i attached a led to pin d0 on wemos d1 mini
also a led on d8 for test purposes, put a digital button with v3 in it to light up the led attached to pin d8, that one are working just fine
for the timer one, pin d0… nothing…i wanted to use the timer to light up at xx:xx and close at xx:xx
i add a button for test porposes, when i click on it the led on d0 light up, but nothing with timer


#define BLYNK_PRINT Serial
 
#include <ESP8266WiFi.h>

#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.

// Go to the Project Settings (nut icon).

char auth[] = "*****";
 
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "***";
char pass[] = "***";

int LED1 = D8;
int LED5 = D0;

void setup()
{
  // Debug console
  Serial.begin(115200);
 pinMode(LED1, OUTPUT); 
 pinMode(LED5, OUTPUT);
  Blynk.begin(auth, ssid, pass);

}

BLYNK_WRITE(V3) {
 int pinValue = param.asInt(); // Assigning incoming value from pin V3 to a variable
 if (pinValue == 1) {
    digitalWrite(LED1, HIGH); // Turn LED on.
  } else {
    digitalWrite(LED1, LOW); // Turn LED off.
 }
}
BLYNK_WRITE(V7) {
 int test1 = param.asInt(); 
 if (test1 == 1) {
    digitalWrite(LED5, HIGH); // Turn LED on.
  } else {
    digitalWrite(LED5, LOW); // Turn LED off.
 }
}

void loop()
{
  Blynk.run();
 
}

Looks like you are using the Time Input widget… which has a totally different purpose and function (hint - not for what you are doing) than the Timer Widget (hint - which is the one you want)…

http://docs.blynk.cc/#widgets-controllers-timer

1 Like

thanks a lot