 int8_t minuteAnimationDirection = 1;
 float minuteAnimationTimer = 0;
 
+float previousBrightness = 0;
+float brightness = 1;
+
 float hourAnimationTimer = 0;
 
 std::vector<Animation*> animations;

        char time[9];
        snprintf(time, 9, "%02d:%02d:%02d", now.hour(), now.minute(), now.second());
        
        char date[11];
        snprintf(date, 11, "%02d.%02d.%04d", now.day(), now.month(), now.year());
        
        lcd.setCursor(0,0);
        lcd.print(time);
        lcd.setCursor(0,1);
        lcd.print(date);
        
        char ms[6];
        snprintf(ms, 6, "%dms", timeSinceLastTick);

            
            unsigned long timeSinceLastUpdate = currentMillis - lastUpdateMillis;
            float time = timeSinceLastUpdate * timeMultiplier / 1000.0;
            
            if (hourAnimationTimer > 0)
            {
                hourAnimationTimer -= time;
