Can someone help me

hi i’m new in blynk.

#define BLYNK_TEMPLATE_ID "TMPLUbWIVa-J"
#define BLYNK_DEVICE_NAME "project1"
#define BLYNK_AUTH_TOKEN "ykXpIAMRYu-weRVq1PD05ddSgMgZpfpE"
#define BLYNK_PRINT Serial
int pin = 4;

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Kerja80_Maxis";
char pass[] = "Hyperjackie12#";
void setup() {
  pinMode(pin, OUTPUT); 
    pinMode(pin, HIGH); 
Serial.begin(115200);
  delay(10);
  Blynk.begin(auth, ssid, pass);

}

void loop() {
  
Blynk.run();

}

no light from led

digitalWrite(pin, HIGH);
Btw what are you trying to achieve?
Your code is incomplete.

I just want to control the led from blynk web. found this sample coding, so i could use it. can help me?

//Tech Trends Shameer
//Control LED Using Blynk 2.0/Blynk IOT

#define BLYNK_TEMPLATE_ID "TMPLUbWIVa-J"
#define BLYNK_DEVICE_NAME "project1"
#define BLYNK_AUTH_TOKEN "xt90x348qteMDes79cyyOaYAgJ5baI_Y"


#define BLYNK_PRINT Serial
  #include <WiFi.h>
  #include <WiFiClient.h>
  #include <BlynkSimpleEsp32.h>
 

char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Kerja80_Maxis";  // Enter your Wifi Username
char pass[] = "Hyperjackie12#";  // Enter your Wifi password

int ledpin = G4;
void setup()
{     
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);    
  pinMode(ledpin,OUTPUT);
}

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

‘G4’ was not declared in this scope

Sharing your auth token with the public is not a good idea.

Should be

int ledpin = 4;

Are you attempting to use a widget that is connected to a digital datastream in Blynk?

Is your physical LED active HIGH or active LOW (onboard LEDs are normally active LOW).

TBH, you’re far better using virtual datastreams rather than digital ones, and you don’t have any virtual pin handlers in your sketch at the moment.

Pete.