mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
Use GPIOXX in sample configs (#3702)
This commit is contained in:
parent
bfda3aadb7
commit
d06ece2d70
@ -26,8 +26,8 @@ below for a sample hardware interface.
|
|||||||
baud_rate: 1200
|
baud_rate: 1200
|
||||||
parity: even
|
parity: even
|
||||||
stop_bits: 1
|
stop_bits: 1
|
||||||
tx_pin: REPLACEME
|
tx_pin: GPIOXX
|
||||||
rx_pin: REPLACEME
|
rx_pin: GPIOXX
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
platform: he60r
|
platform: he60r
|
||||||
@ -72,9 +72,9 @@ Note that this circuit inverts the TX line. A configuration for this would look
|
|||||||
parity: even
|
parity: even
|
||||||
stop_bits: 1
|
stop_bits: 1
|
||||||
tx_pin:
|
tx_pin:
|
||||||
number: REPLACEME
|
number: GPIOXX
|
||||||
inverted: true
|
inverted: true
|
||||||
rx_pin: REPLACEME
|
rx_pin: GPIOXX
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
platform: he60r
|
platform: he60r
|
||||||
@ -84,7 +84,7 @@ Note that this circuit inverts the TX line. A configuration for this would look
|
|||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin:
|
pin:
|
||||||
number: REPLACEME
|
number: GPIOXX
|
||||||
inverted: true
|
inverted: true
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
|
@ -36,7 +36,7 @@ a :doc:`/components/uart` component (and its requisite GPIO pins) is required in
|
|||||||
name: Mmwave Detected via GPIO
|
name: Mmwave Detected via GPIO
|
||||||
device_class: motion
|
device_class: motion
|
||||||
pin:
|
pin:
|
||||||
number: REPLACEME
|
number: GPIOXX
|
||||||
mode: INPUT_PULLDOWN
|
mode: INPUT_PULLDOWN
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
@ -97,7 +97,7 @@ If you don't want/need to change the radar's settings and only need to determine
|
|||||||
name: Presence Detected via GPIO
|
name: Presence Detected via GPIO
|
||||||
device_class: motion
|
device_class: motion
|
||||||
pin:
|
pin:
|
||||||
number: REPLACEME
|
number: GPIOXX
|
||||||
mode: INPUT_PULLDOWN
|
mode: INPUT_PULLDOWN
|
||||||
|
|
||||||
.. _dfrobot_sen0395-via_uart:
|
.. _dfrobot_sen0395-via_uart:
|
||||||
|
@ -55,7 +55,7 @@ Component/Hub
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
micronova:
|
micronova:
|
||||||
enable_rx_pin: REPLACEME
|
enable_rx_pin: GPIOXX
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -94,7 +94,7 @@ complete configuration for a Sonoff B1 looks like:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: REPLACEME
|
name: GPIOXX
|
||||||
|
|
||||||
esp8266:
|
esp8266:
|
||||||
board: esp01_1m
|
board: esp01_1m
|
||||||
@ -135,7 +135,7 @@ complete configuration for a Sonoff B1 looks like:
|
|||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: rgbww
|
- platform: rgbww
|
||||||
name: REPLACEME
|
name: GPIOXX
|
||||||
red: output_red
|
red: output_red
|
||||||
green: output_green
|
green: output_green
|
||||||
blue: output_blue
|
blue: output_blue
|
||||||
@ -149,7 +149,7 @@ And here is a complete configuration for the AiThinker AiLight:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: REPLACEME
|
name: GPIOXX
|
||||||
|
|
||||||
esp8266:
|
esp8266:
|
||||||
board: esp01_1m
|
board: esp01_1m
|
||||||
@ -187,7 +187,7 @@ And here is a complete configuration for the AiThinker AiLight:
|
|||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: rgbw
|
- platform: rgbw
|
||||||
name: REPLACEME
|
name: GPIOXX
|
||||||
red: output_red
|
red: output_red
|
||||||
green: output_green
|
green: output_green
|
||||||
blue: output_blue
|
blue: output_blue
|
||||||
|
@ -93,8 +93,8 @@ A complete configuration for a Feit Electric A19 looks like:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: REPLACEME
|
name: GPIOXX
|
||||||
friendly_name: REPLACEME
|
friendly_name: GPIOXX
|
||||||
|
|
||||||
esp8266:
|
esp8266:
|
||||||
board: esp01_1m
|
board: esp01_1m
|
||||||
|
@ -454,7 +454,7 @@ under account, you can set up a :ref:`GPIO Binary Sensor <gpio-binary-sensor>`:
|
|||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin: REPLACEME
|
pin: GPIOXX
|
||||||
name: gpio out pin presence
|
name: gpio out pin presence
|
||||||
device_class: presence
|
device_class: presence
|
||||||
|
|
||||||
|
@ -33,12 +33,27 @@ Configuration variables:
|
|||||||
************************
|
************************
|
||||||
|
|
||||||
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
|
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
|
||||||
- **interrupt_pin** (**Required**, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
|
- **interrupt_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
|
||||||
- **rotation** (*Optional*): Set the rotation of the touchscreen. By default this will be set to match the display associated with the touchscreen, but this allows more control. Choices are ``0``, ``90``, ``180`` and ``270``.
|
- **reset_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The chip reset pin.
|
||||||
|
|
||||||
- All other options from :ref:`Touchscreen <config-touchscreen>`.
|
- All other options from :ref:`Touchscreen <config-touchscreen>`.
|
||||||
|
|
||||||
|
|
||||||
|
Sample config for the T4-S3
|
||||||
|
***************************
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: GPIO6
|
||||||
|
scl: GPIO7
|
||||||
|
|
||||||
|
touchscreen:
|
||||||
|
- platform: cst226
|
||||||
|
id: my_touchscreen
|
||||||
|
interrupt_pin: GPIO8
|
||||||
|
reset_pin: GPIO17
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ Configuration variables:
|
|||||||
|
|
||||||
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
|
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
|
||||||
- **interrupt_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
|
- **interrupt_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
|
||||||
- **reset_pin** (**Optional**, :ref:`Pin Schema <config-pin_schema>`): The chip reset pin.
|
- **reset_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The chip reset pin.
|
||||||
|
|
||||||
- All other options from :ref:`Touchscreen <config-touchscreen>`.
|
- All other options from :ref:`Touchscreen <config-touchscreen>`.
|
||||||
|
|
||||||
@ -61,6 +61,19 @@ Configuration variables:
|
|||||||
|
|
||||||
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.
|
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.
|
||||||
|
|
||||||
|
Sample config for the T-Display S3 AMOLED
|
||||||
|
*****************************************
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: GPIO3
|
||||||
|
scl: GPIO2
|
||||||
|
|
||||||
|
touchscreen:
|
||||||
|
- platform: cst816
|
||||||
|
id: my_touchscreen
|
||||||
|
interrupt_pin: GPIO21
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
|
@ -33,8 +33,7 @@ Configuration variables:
|
|||||||
************************
|
************************
|
||||||
|
|
||||||
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
|
- **id** (*Optional*, :ref:`config-id`): Manually set the ID of this touchscreen.
|
||||||
- **interrupt_pin** (**Required**, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
|
- **interrupt_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The touch detection pin.
|
||||||
- **rotation** (*Optional*): Set the rotation of the touchscreen. By default this will be set to match the display associated with the touchscreen, but this allows more control. Choices are ``0``, ``90``, ``180`` and ``270``.
|
|
||||||
|
|
||||||
- All other options from :ref:`Touchscreen <config-touchscreen>`.
|
- All other options from :ref:`Touchscreen <config-touchscreen>`.
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ The :ref:`I²C <i2c>` is required to be set up in your configuration for this to
|
|||||||
# Example configuration entry
|
# Example configuration entry
|
||||||
touchscreen:
|
touchscreen:
|
||||||
- platform: lilygo_t5_47
|
- platform: lilygo_t5_47
|
||||||
interrupt_pin: GPIO13
|
interrupt_pin: GPIOXX
|
||||||
|
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
@ -60,17 +60,17 @@ Base Configuration:
|
|||||||
- **threshold** (*Optional*, int): The value to detect the touch or release. Defaults to ``400``.
|
- **threshold** (*Optional*, int): The value to detect the touch or release. Defaults to ``400``.
|
||||||
|
|
||||||
|
|
||||||
- **calibration_x_min** (*Depricated*): This value is moved to the ``calibration`` values
|
- **calibration_x_min** (*Deprecated*): This value is moved to the ``calibration`` values
|
||||||
|
|
||||||
- **calibration_x_max** (*Depricated*): This value is moved to the ``calibration`` values.
|
- **calibration_x_max** (*Deprecated*): This value is moved to the ``calibration`` values.
|
||||||
|
|
||||||
- **calibration_y_min** (*Depricated*): This value is moved to the ``calibration`` values.
|
- **calibration_y_min** (*Deprecated*): This value is moved to the ``calibration`` values.
|
||||||
|
|
||||||
- **calibration_y_max** (*Depricated*): This value is moved to the ``calibration`` values.
|
- **calibration_y_max** (*Deprecated*): This value is moved to the ``calibration`` values.
|
||||||
|
|
||||||
- **swap_x_y** (*Depricated*): This value is moved to the ``transform`` values as ``swap_xy`` see :ref:`config-touchscreen`.
|
- **swap_x_y** (*Deprecated*): This value is moved to the ``transform`` values as ``swap_xy`` see :ref:`config-touchscreen`.
|
||||||
|
|
||||||
- **report_interval** (*Depricated*): This interval is removed in favor of the ``update_interval``.
|
- **report_interval** (*Deprecated*): This interval is removed in favor of the ``update_interval``.
|
||||||
|
|
||||||
- All other options from :ref:`config-touchscreen`.
|
- All other options from :ref:`config-touchscreen`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user