mirror of
https://github.com/esphome/esphome.git
synced 2025-10-25 21:23:53 +01:00
25 lines
473 B
C++
25 lines
473 B
C++
#pragma once
|
|
|
|
#include "esphome/core/defines.h"
|
|
#ifdef USE_NRF52_DFU
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/core/gpio.h"
|
|
|
|
namespace esphome {
|
|
namespace nrf52 {
|
|
class DeviceFirmwareUpdate : public Component {
|
|
public:
|
|
void setup() override;
|
|
void loop() override;
|
|
void set_reset_pin(GPIOPin *reset) { this->reset_pin_ = reset; }
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
GPIOPin *reset_pin_;
|
|
};
|
|
|
|
} // namespace nrf52
|
|
} // namespace esphome
|
|
|
|
#endif
|