NodeMCU arduino IDE blink example doesn't work

Hi

I have a nodeMCU module and I run the code below but it doesn't work.

I connect my LED to D4 pin and GND.

#define LED_Pin 4

void setup() {
  pinMode(LED_Pin, OUTPUT);     
}


void loop() {
  digitalWrite(LED_Pin, LOW);   
                                    
                                    
  delay(1000);                     
  digitalWrite(LED_Pin, HIGH); 
  delay(2000);                      
}

I connect my LED to D4 pin and GND.

You need a resistor in seriese with the LED, you might have damaged the output pin by not fitting one. Try using a 220R resistor and another pin.

Oh

Ok thanks

I will check it withh 220R resistor