ESPHome  2024.10.2
gpio_binary_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "esphome/core/hal.h"
6 
7 namespace esphome {
8 namespace 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
float get_setup_priority() const override
Hardware priority.
void loop() override
Check sensor.
void setup() override
Setup pin.
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:37