Problems regarding simple timer

**** #include <SimpleTimer.h>


  • Blynk is a platform with iOS and Android apps to control
  • Arduino, Raspberry Pi and the likes over the Internet.
  • You can easily build graphic interfaces for all your
  • projects by simply dragging and dropping widgets.
  • Downloads, docs, tutorials:
  • Blynk community:
  • Social networks:
  • Blynk library is licensed under MIT license
  • This example code is in public domain.

  • This example shows how to use ESP8266 Shield (with AT commands)
  • to connect your project to Blynk.
  • It’s rather tricky to get it working, please read this article:
  • Change WiFi ssid, pass, and Blynk auth token to run :slight_smile:
  • Feel free to apply it to any other example. It’s simple!


#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “auth”;

// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “Dreamerz”;
char pass[] = “pass”;

// Hardware Serial on Mega, Leonardo, Micro…
#define EspSerial Serial
Servo servo;
SimpleTimer timer;

// or Software Serial on Uno, Nano…
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

if ( param.asInt()== 1 ) {
void enable(timer);
digitalWrite(18, HIGH);
??? //replace this with a function that can execute the following after 2 seconds
digitalWrite(18, LOW);

{ if ( param.asInt() == 0 ) {
void enable(timer);
digitalWrite(18, HIGH);
??? //replace this with a function that can execute the following after 2 seconds
digitalWrite(18, LOW);

void setup()
timer.setTimeout(2000, repeatMe);

// Set console baud rate
// Set ESP8266 baud rate

Blynk.begin(auth, wifi, ssid, pass);

void loop(){;;
help please. not able to understand simple timer
@Costas @Jamin

@Jamin please help me. i am no able to understand the SimpleTimer Library