esphome-docs/api/binary_sensor/gpio.rst

27 lines
514 B
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
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));
2018-05-14 21:15:49 +02:00
.. cpp:namespace:: nullptr
2018-05-13 11:37:02 +02:00
See :cpp:func:`Application::make_gpio_binary_sensor`.
API Reference
-------------
.. cpp:namespace:: nullptr
.. doxygenclass:: binary_sensor::GPIOBinarySensorComponent
:members:
:protected-members:
:undoc-members: