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

  Timer1.attachInterrupt(timerIsr); 
  //timer.initialize(timerPeriod);
  //timer.pwm(LEDpinA, 0); //set up pin 9
  matrix.begin(0x70);
  display_todd();
  //while (!eeprom.isPresent()) { delay(1); }
  readBrightnessFromEEPROM();
  matrix.setBrightness(matrixBrightness); // 0-15
  readSunDownDeltaFromEEPROM();

#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
