 const byte amberled = 6;
 const byte whiteled = 11;
 const byte cyaled = 9;
+const byte extrawhitepin = 53;
+
+#ifdef ARDUINO_LINUX
+const byte redled = 3;
+const byte grnled = 5;
+const byte bluLED = 6;
+#endif
+
+#ifdef due3
+const byte redled = 7;
+const byte grnled = 3;
+const byte bluLED = 5;
+#endif
 
 #ifdef due4
 const byte redled = 7;
 const byte grnled = 3;
 const byte bluLED = 5;
-#else
-#ifdef __SAM3X8E__
-// fix the LED order in hardware....
+#endif
+
+#ifdef due5
+const byte redled = 7;
+const byte grnled = 3;
+const byte bluLED = 5;
+#endif
+
+#ifdef due6
 const byte redled = 6;
 const byte grnled = 5;
 const byte bluLED = 7;
-#else
-const byte redled = 5;
-const byte grnled = 6;
-const byte bluLED = 8;
-#endif
-#endif
-
+#endif
+
+//#ifdef ESP8266
+//const byte redled = 4;
+//const byte grnled = 0;
+//const byte bluLED = 5;
+//#endif
+
+#ifdef ESP8266
+const byte redled = 13; // Farnell 2080005
+const byte grnled = 15; // 1855562
+const byte bluLED = 2;  // 1045418
+#endif
 const byte analogPin = 0 ;
-const byte connectedPin = A1;
+//const byte connectedPin = A1;
 byte iGainFactor = 1 ;
 
 int myIntensity = 128 ;

  client.print("<input type=\"number\" id=\"myIntensity\" name=\"intensity\" value=\"");
  client.print(myIntensity);
  client.println("\">");
  client.println("</td><td>");
  client.println("<input type=\"radio\" name=\"col\" id=\"red\" value=\"1\">red<br>");
  client.println("<input type=\"radio\" name=\"col\" id=\"green\" value=\"2\">green<br>");
  client.println("<input type=\"radio\" name=\"col\" id=\"blue\" value=\"3\">blue<br><BR>");
  client.println("</td></tr></table><BR>");

  client.println("<input type=\"submit\" value=\"Submit\"></form>");

  client.println("");
  switch (myCol)
  {
    case 1:
      client.println("<script>var shirtColor = \"red\";");
      break;
    case 2:
      client.println("<script>var shirtColor = \"green\";");
      break;
    case 3:
    default:
      client.println("<script>var shirtColor = \"blue\";");
      break;
  }
  client.println("document.getElementById(shirtColor).checked = true; </script>");
  
    client.println("");
  switch (myTime)
  {
    case 1000:
      client.println("<script>var shirtTime = \"one\";");
      break;
    case 3000:
    default:
      client.println("<script>var shirtTime = \"three\";");
      break;
    case 5000:
      client.println("<script>var shirtTime = \"five\";");
      break;
  }
  client.println("document.getElementById(shirtTime).checked = true; </script>");
  client.println("");
  client.println("</body></html>");
}



//
volatile byte usedLED  = 0;
const byte fiberLED = 8 ;
const byte noContactLED = 2;

