Header Ads Widget

Source Code - ESP32: Led Blink - Bogor Tech

 

ESP32: Led Blink


Blink Onboard LED (Blue Color) at pin 2



Arduino: Code Led Blink

/***
 * LED Blinking
 * Code Written by TechMartian
 */

const int ledPin = 2;

void setup() {
  // setup pin 2 as a digital output pin
  pinMode (ledPin, OUTPUT);
}

void loop() {
  digitalWrite (ledPin, HIGH);  // turn on the LED
  delay(1000); // wait for half a second or 500 milliseconds
  digitalWrite (ledPin, LOW); // turn off the LED
  delay(1000); // wait for half a second or 500 milliseconds
}

Post a Comment

0 Comments