mirror of
https://github.com/esphome/esphome.git
synced 2024-12-04 04:28:19 +01:00
23 lines
408 B
C++
23 lines
408 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/sensor/sensor.h"
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
namespace esphome {
|
|
namespace esp32_hall {
|
|
|
|
class ESP32HallSensor : public sensor::Sensor, public PollingComponent {
|
|
public:
|
|
void dump_config() override;
|
|
|
|
void update() override;
|
|
|
|
std::string unique_id() override;
|
|
};
|
|
|
|
} // namespace esp32_hall
|
|
} // namespace esphome
|
|
|
|
#endif
|