     uint8_t brightness_;
 };
 
-volatile uint32_t last_zerocross_isr_time;
-volatile uint8_t zerocross_isr_flag;
-uint16_t num_cycles;
-uint8_t led2_state;
-uint8_t mins_since_last_remote_command;
-
 DimmerChannel<SSR1_PIN> ch1;
 DimmerChannel<SSR2_PIN> ch2;
 DimmerChannel<SSR3_PIN> ch3;

      duty_cycle_smoothing_rate_us_ = INITIAL_SMOOTHING_US;
    }

    void on_zero_cross(const uint32_t& last_zerocross_time) {
      // Perform smoothing adjustement to converge towards the
      // |target_duty_cycle_us| set-point.
      if (current_duty_cycle_us_ > target_duty_cycle_us_) {

      EEPROM.update(PIN, brightness_);
    }

    void trigger_ssr_if_time() {
      if (g_now >= next_trigger_time_) {
        digitalWrite(PIN, HIGH);
        next_trigger_time_ = -1;
      }
    }

    inline uint8_t brightness() const {
       return brightness_;
    }
