mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-17 11:05:39 +01:00
30 lines
596 B
ReStructuredText
30 lines
596 B
ReStructuredText
GPIO Binary Output
|
|
==================
|
|
|
|
Example Usage
|
|
-------------
|
|
|
|
.. code-block:: cpp
|
|
|
|
// Create a binary output, *not a switch*
|
|
App.make_gpio_output(33);
|
|
// Custom pinMode
|
|
App.make_gpio_output(GPIOOutputPin(33, OUTPUT_OPEN_DRAIN));
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
See :cpp:func:`Application::make_gpio_output` (and :cpp:func:`Application::make_gpio_switch`).
|
|
|
|
API Reference
|
|
-------------
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
GPIOBinaryOutputComponent
|
|
*************************
|
|
|
|
.. doxygenclass:: output::GPIOBinaryOutputComponent
|
|
:members:
|
|
:protected-members:
|
|
:undoc-members:
|