LED_BLINKY_DELAY — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by trongnhanle85.

Components

Sketch code

// ESP32 Blink LED
// Blinks the  LED (GPIO2) and LED (GPIO4)
// Requires arduino-esp32 2.0.17 (IDF 4.4.x)


#define LED_D2     2   // External red LED PIN 2
#define LED_D4     4   // External red LED PIN 4

#define LED_2_ON    2
#define LED_2_OFF   2
#define LED_4_ON    2
#define LED_4_OFF   2


int led_2_status = 0;
int counter_led_2_ON = 2;
int counter_led_2_OFF = 2;

int led_4_status = 0;

void setup() {
  pinMode(LED_D2, OUTPUT);
  pinMode(LED_D4, OUTPUT);
}

void loop() {

  digitalWrite(LED_D2, HIGH);
  delay(1000);

  digitalWrite(LED_D2, LOW);
  delay(1000);
}

More projects by trongnhanle85