 
 void loop1(void *pvParameters) {
   while (1) {
-    if ( r != rouge || g != vert || b != bleu) {
+    if ( r != rouge || g != vert || b != bleu || flashoufade != 0 ) {
       lumiereloop();
       vTaskDelay( 7 / portTICK_PERIOD_MS ); // wait / yield time to other tasks
     } else {


// stylesheet for web pages
const String css = "<style>\n"
                   ".color {\n"
                   "width:80%;\n"
                   "height:64px;\n"
                   "padding:0px;\n"
                   "margin:0px;\n"
                   "border: none;\n"
                   "text-decoration: none;\n"
                   "display: inline-block;\n"
                   "cursor: pointer; -webkit-transition-duration: 0.4s;\n"
                   "transition-duration: 0.4s\n}\n"
                   ".button1 {\n"
                   "background-color: #4CAF50;\n"
                   "border: none;\n"
                   "color: white;\n"
                   "padding: 15px 32px;\n"
                   "text-align: center;\n"
                   "text-decoration: none;\n"
                   "display: inline-block;\n"
                   "font-size: 24px;\n"
                   "margin: 4px 2px;\n"
                   "cursor: pointer; -webkit-transition-duration: 0.4s;\n"
                   "transition-duration: 0.4s; width: 80%;\n}\n"
                   "button {\n"
                   "background-color: #AC0050;\n"
                   "border: none;\n"
                   "color: white;\n"
                   "padding: 15px 32px;\n"
                   "text-align: center;\n"
                   "text-decoration: none;\n"
                   "display: inline-block;\n"
                   "font-size: 24px;\n"
                   "margin: 4px 2px;\n"
                   "cursor: pointer; -webkit-transition-duration: 0.4s;\n"
                   "transition-duration: 0.4s; width: 80%;\n}\n"
                   "button:hover,.color:hover, .button1:hover {\n"
                   "box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);\n}\n"
                   "div#logs {"
                   "width: 100%;"
                   "height: 450px;"
                   "font-size: 12px;"
                   "overflow: auto;"
                   "text-align:left;"
                   "}"
                   "</style>\n";
// end of stylesheet for web pages


  Serial.println(attendF);
  Serial.print("Fois - ");
  Serial.println(flashfois / 2);
  if (attendF == 0){
    flashfois = 0;
  }
  if (testteu != 0) {
    derncoul = testteu;
    long number = strtol( &testteu[1], NULL, 16);
