mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-28 17:48:35 +01:00
26 lines
437 B
ReStructuredText
26 lines
437 B
ReStructuredText
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:
|