PHP

11/20/2023

ESP32 Built-in LED Blink Code [001]

 /*

 * ESP32 LED Blink 

 * Board ESP23 DEVKIT V1

 * 

 * ON Board LED GPIO 2

 */


#define LED 2


void setup() {

  // Set pin mode

  pinMode(LED,OUTPUT);

}


void loop() {

  delay(1000);

  digitalWrite(LED,HIGH);

  delay(1000);

  digitalWrite(LED,LOW);

}

No comments:

Post a Comment

Featured Post

Coating chocolate using methods like panning

 Coating chocolate using methods like panning involves careful temperature control throughout the processing period to achieve the desired r...

Popular Posts