mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-27 17:37:45 +01:00
27 lines
514 B
ReStructuredText
27 lines
514 B
ReStructuredText
GPIO Binary Sensor
|
|
==================
|
|
|
|
Example Usage
|
|
-------------
|
|
|
|
.. code-block:: cpp
|
|
|
|
// Basic
|
|
App.make_gpio_binary_sensor("Window Open", 36);
|
|
// Custom pinMode
|
|
App.make_gpio_binary_sensor("Window Open", GPIOInputPin(36, INPUT_PULLUP));
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
See :cpp:func:`Application::make_gpio_binary_sensor`.
|
|
|
|
API Reference
|
|
-------------
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
.. doxygenclass:: binary_sensor::GPIOBinarySensorComponent
|
|
:members:
|
|
:protected-members:
|
|
:undoc-members:
|