   return  1.0* BRIGHT_0+ 1.0* brightness_percent*BRIGHT_PERCENT;
 }
   
-  void saveBrighness(int brightness){
-     configuration.brightness =brightness;
-     EEPROM_writeAnything(0, configuration);
-   }
+
+
+/**Сохраняет уровень яркости во внутреннюю память*/
+void saveBrighness(int brightness){
+  configuration.brightness =brightness;
+  EEPROM_writeAnything(0, configuration);
+}
 
 
 char* header= " B\1A\2H. TEM\3. ";

        
        analogWrite(BRIGHT_PIN, getBrightLevel(brightness));  

        saveBrighness(brightness);
        
        printBrighnessState(brightness);
        

    
        
        bri_prev_time =micros();
        delay(200);
        return;
      }
      
