I want to use Virtual Write function instead of WidgetLED for ESP32 with multi tasking

Hi There,

Many thanks for the example for ESP32 with multi tasking. I want to use Virtual Write function instead of WidgetLED. I am however a beginner in C and not able to compile
the code. Please can anyone help me with using BLYNK_WRITE(V0) for Multi core usage on ESP32 instead of WidgetLED?

Many Thanks

   int pinValue;

int pin = 21;

// Dirty loop with delays, YUCK!
void loop1(void *pvParameters)
{
while (1) {
BLYNK_WRITE(V0);
}