mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-03 18:47:48 +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:
|