   resetpass = preferences.getString("resetpass", "admin");
   thingkey = preferences.getString("thingkey", "none");
   thingchanel = preferences.getString("thingchanel", "none");
-  xTaskCreatePinnedToCore(loop1, "loop1", 4096, NULL, 3, NULL, 0);
+  xTaskCreatePinnedToCore(loop1, "loop1", 2048, NULL, 0, NULL, 0);
   lesliens();
   WiFiManager wifiManager;
   wifiManager.setTimeout(240);

  }
}
void lumiereloop() {
  unsigned long currentMillis;
  if (flashoufade == 1) {
    currentMillis = millis();
    if (currentMillis - previousMillisf >= attendF) {
      flashfunk();
      previousMillisf = currentMillis;

  while (1) {
    if ( r != rouge || g != vert || b != bleu || flashoufade != 0 ) {
      lumiereloop();
      vTaskDelay( 3 / portTICK_PERIOD_MS ); // wait / yield time to other tasks
    } else {
      vTaskDelay( 50 / portTICK_PERIOD_MS ); // wait / yield time to other tasks
    }
  }
}
