#pragma once

#include "esphome/core/component.h"
#include "esphome/core/hal.h"

namespace esphome::status_led {

class StatusLED final : public Component {
 public:
  explicit StatusLED(GPIOPin *pin);

  void pre_setup();
  void dump_config() override;
  void loop() override;
  float get_setup_priority() const override;

 protected:
  GPIOPin *pin_;
};

extern StatusLED *global_status_led;  // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)

}  // namespace esphome::status_led
