Led aint blinking help

am have a problem
can help?
here is code:

void setup() {
  pinMode(2, OUTPUT); // Set GPIO22 as digital output pin

}

void loop()  {

  digitalWrite(2, HIGH); // Set GPIO22 active high
  delay(1000);  // delay of one second
  digitalWrite(2, LOW); // Set GPIO22 active low
  delay(1000); // delay of one second

}

is not flashing as what i want

Hi, @alispacearduino
Welcome to the forum.

What Arduino controller are you using.

If an ESP32?
Try calling the pin 22 instead of 2.

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

oh thanks its working tom

you're australlian i think

True Blue.... LOL

Tom.. :grinning: :+1: :coffee: :australia:
PS. About to go to bed, 30mins past midnight here... :sleeping: :sleeping: :sleeping: :sleeping:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.