I recently did something similar with pulsing a relay. Try this concept: Producing pulses Just adjust the times and flash the LEDS instead of the relay.
// Non-blocking pulse routine every 500ms for three times, leaving the relay activated for 100ms each time.
BLYNK_WRITE(V1) // Virtual button on V1 to activate relay pulses
{
int RLY = param.asInt();
if (RLY == 1)
{
timerV1.setTimer(500, RelayON, 3); // Pulse Relay ON routine three times in 500ms
}
}
void RelayON()
{
digitalWrite(2, HIGH); // Activate relay
timerV1.setTimer(100, RelayOFF, 1); // RunRelay OFF routine once in 100ms
}
void RelayOFF()
{
digitalWrite(2, LOW); // deactivate relay
}