 
 void down()
 {
-  bri = 0;
-  setLeds();
+  bri_t = 0;
+  setAllLeds();
   Serial.println("MODULE TERMINATED");
   while (1) {delay(1000);}
 }
 
 void reset()
 {
-  bri = 0;
-  setLeds();
+  bri_t = 0;
+  setAllLeds();
   Serial.println("MODULE RESET");
   ESP.reset();
 }

IPAddress staticip(0, 0, 0, 0);
IPAddress staticgateway(0, 0, 0, 0);
IPAddress staticsubnet(255, 255, 255, 0);

byte col[]{255, 127, 0};
byte bri = 127;
byte hue, sat;
boolean ota_lock = false;
boolean only_ap = false;
int led_amount = 16;
int nopwrled = 1;

char HTTP_req[150];


  EEPROM.write(228, aphide);
  EEPROM.write(227, apchannel);
  EEPROM.write(229, led_amount);
  EEPROM.write(234, staticip[0]);
  EEPROM.write(235, staticip[1]);
  EEPROM.write(236, staticip[2]);
