esphome-docs/api/core/power-supply.rst

26 lines
437 B
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
Power Supply
============
Example Usage
-------------
.. code-block:: cpp
// Basic
auto *power_supply = App.make_power_supply(12);
// Inverted, for ATX
auto *atx = App.make_power_supply(GPIOOutputPin(12, OUTPUT, true));
API Reference
-------------
.. cpp:namespace:: nullptr
PowerSupplyComponent
********************
.. doxygenclass:: PowerSupplyComponent
:members:
:protected-members:
:undoc-members: