ESPHome 2025.5.0
Loading...
Searching...
No Matches
gpio_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
4#include "esphome/core/hal.h"
6
7namespace esphome {
8namespace gpio {
9
11 public:
12 void set_pin(GPIOPin *pin) { pin_ = pin; }
13 // ========== INTERNAL METHODS ==========
14 // (In most use cases you won't need these)
16 void setup() override;
17 void dump_config() override;
19 float get_setup_priority() const override;
21 void loop() override;
22
23 protected:
25};
26
27} // namespace gpio
28} // namespace esphome
Base class for all binary_sensor-type classes.
void loop() override
Check sensor.
float get_setup_priority() const override
Hardware priority.
void setup() override
Setup pin.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7