 
 
 void setTime() {
-  digitalWrite(TimeLED,HIGH);
+  analogWrite(TimeLED,matrixBrightness*255/16+15);
   DateTime currentTime = RTC.now();
   ClockTime t(currentTime);
   display_Cloc();

}

void setAlarm() {
  digitalWrite(AlarmLED,HIGH);
  display_ALAr();
  delay(1000);
  updateTimeDisplay(alarmTime,true,true);

#define ENCODER_PIN1 12


#define AlarmButton 7
#define AlarmLED 5
#define TimeButton 9
#define TimeLED 10
#define OffButton A0
#define AlarmEnabledSwitch 8
#define RotaryButton A1

#define NUM_LED 32
#define LED_PIN 6
