   else {
     alarmMasterSwitchEnabled = true;
   }
-  updateBrightness();
   updateLight();
   updateCurrentTime();
   updateClockTime();

  pinMode(AlarmButton,INPUT_PULLUP); 
  pinMode(TimeButton,INPUT_PULLUP);
  pinMode(alarmMasterSwitch, INPUT_PULLUP);
  pinMode(RotaryButton, INPUT_PULLUP);
  pinMode(OffButton,INPUT);
  pinMode(AlarmLED, OUTPUT);
  pinMode(TimeLED, OUTPUT);

    fixTime();
    return result;
  }

  ClockTime operator--(int) {
    ClockTime result(*this);
    --this->minute;
    fixTime();
    return result;
  }

  ClockTime & operator++() {
    ++this->minute;
    fixTime();
    return *this;
  }

  ClockTime & operator--() {
    --this->minute;
    fixTime();
    return *this;
  }    

  void fixTime() {
    while (this->second > 59) {
      ++this->minute;
      this->second -= 60;
    }
    while (this->second < 0) {
      --this->minute;
      this->second += 60;
    }

    while (this->minute > 59) {
      ++this->hour;
      this->minute -= 60;
    }
    while (this->minute < 0) {
      --this->hour;
      this->minute += 60;
    }

    while (this->hour > 23) {
      this->hour -= 24;
    }
    while (this->hour < 0) {
      this->hour += 24;
    }
  }

  int hour;
  int minute;
  int second;
