tempo multiples sans utiliser delay

Voilà la boucle principale de BlinkWithoutDelay

  unsigned long currentMillis = millis();
 
  if(currentMillis - previousMillis > interval) {
    // save the last time you blinked the LED 
    previousMillis = currentMillis;   

    // if the LED is off turn it on and vice-versa:
    if (ledState == LOW)
      ledState = HIGH;
    else
      ledState = LOW;

    // set the LED with the ledState of the variable:
    digitalWrite(ledPin, ledState);
  }

Il suffit de changer interval dans les 2 branches du if

  unsigned long currentMillis = millis();
 
  if(currentMillis - previousMillis > interval) {
    // save the last time you blinked the LED 
    previousMillis = currentMillis;   

    // if the LED is off turn it on and vice-versa:
    if (ledState == LOW){
      ledState = HIGH;
      interval = Temp_Low;
    }else{
      ledState = LOW;
      interval = Temp_High;
   }
    // set the LED with the ledState of the variable:
    digitalWrite(ledPin, ledState);
  }

A toi de définir les 2 valeurs de temporisation