@Dolly please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
I apologize, but my knowledge is not very rich in programming. I can’t handle it, can you give me another example?
I tried this, but nothing happens. #define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Ticker.h> // Install from Arduino Library Manager
#define blue_led 2 // NodeMCU onboard LED attached to GPIO2 (D4)
Ticker blueticker; // Initialise the Ticker object called blueticker
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "_2DX-EyR20G_KRKk9vD";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "1";
char pass[] = "t20";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(blue_led, OUTPUT);
}
void flashblue() // Non-blocking ticker for Blue LED
{
int state = digitalRead(blue_led); // get the current state of the blue_led pin
digitalWrite(blue_led, !state); // set pin to the opposite state
blueticker.attach(0.5, flashblue);
}
void loop()
{
Blynk.run();
}
Looks like you’re probably back to using lambda timers or a combination of a timer and a ticker, but I don’t have the time or the inclination to explain the detail of how you might implement that.