 }
 
 void setAlarm() {
-  digitalWrite(AlarmLED,HIGH);
+  analogWrite(AlarmLED,matrixBrightness*255/16+1);
   display_ALAr();
   delay(1000);
   updateTimeDisplay(alarmTime,true,true);



void setTime() {
  digitalWrite(TimeLED,HIGH);
  DateTime currentTime = RTC.now();
  ClockTime t(currentTime);
  display_Cloc();

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