#define LED_RED 14
#define LED_YELLOW 12
#define LED_GREEN 13

void ledPulse(uint8_t pinNum, unsigned long delayNum);

void ledPulse(uint8_t pinNum, unsigned long delayNum){
  digitalWrite(pinNum, HIGH);
  delay(delayNum);
  digitalWrite(pinNum, LOW);
}

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");

  pinMode(LED_RED, OUTPUT);
  pinMode(LED_YELLOW, OUTPUT);
  pinMode(LED_GREEN, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  for(uint8_t i=LED_YELLOW;i<=LED_RED;i++){
    ledPulse(i, 500);
  }
  delay(10); // this speeds up the simulation
}