You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: automations/actions.rst
+15-7
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,11 @@ turns on a light for 5 seconds. Otherwise, the light is turned off immediately.
217
217
218
218
Configuration variables:
219
219
220
-
- **condition** (**Required**, :ref:`Condition <config-condition>`): The condition to check to determine which branch to take.
220
+
At least one of ``condition``, ``all`` or ``any`` must be provided.
221
+
222
+
- **condition** (*Optional*, :ref:`Condition <config-condition>`): The condition to check to determine which branch to take. If this is configured with a list of conditions then they must all be true for the condition to be true.
223
+
- **all** (*Optional*, :ref:`Condition <config-condition>`): Takes a list of conditions, all of which must be true (and is therefore equivalent to ``condition``.)
224
+
- **any** (*Optional*, :ref:`Condition <config-condition>`): Takes a list of conditions; if at least one is true, the condition will be true.
221
225
- **then** (*Optional*, :ref:`Action <config-action>`): The action to perform if the condition evaluates to true.
222
226
Defaults to doing nothing.
223
227
- **else** (*Optional*, :ref:`Action <config-action>`): The action to perform if the condition evaluates to false.
@@ -406,14 +410,17 @@ Common Conditions
406
410
"Conditions" provide a way for your device to take an action only when a specific (set of) condition(s) is satisfied.
- **use_mclk** (*Optional*, bool): Use the MCLK signal to control the clock. Defaults to ``True``.
28
+
- **use_microphone** (*Optional*, bool): Configure the codec's ADC for microphone input. Defaults to ``False``.
29
+
- **mic_gain** (*Optional*, enum): The gain applied to the ADC microphones. One of ``MIN``, ``0DB``, ``6DB``, ``12DB``, ``18DB``, ``24DB``, ``30DB``, ``36DB``, ``42DB``, or ``MAX``. Defaults to ``42DB``.
30
+
- **address** (*Optional*, int): The I²C address of the driver. Defaults to ``0x18``.
31
+
- **i2c_id** (*Optional*): The ID of the :ref:`I²C bus <i2c>` the ES8311 is connected to.
32
+
- All other options from :ref:`Audio DAC <config-audio_dac>`.
33
+
34
+
Automations
35
+
-----------
36
+
37
+
All :ref:`Audio DAC Automations <automations-audio_dac>` are supported by this platform.
Copy file name to clipboardExpand all lines: components/display/qspi_dbi.rst
+61-14
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,21 @@
1
-
Quad SPI AMOLED Displays
2
-
========================
1
+
Quad SPI Displays
2
+
=================
3
3
4
4
.. seo::
5
-
:description: Instructions for setting up quad SPI AMOLED displays.
5
+
:description: Instructions for setting up quad SPI displays.
6
6
:image: t4-s3.jpg
7
7
8
-
.. _qspi_amoled:
8
+
.. _qspi_dbi:
9
9
10
10
Models
11
11
------
12
-
This display driver supports AMOLED displays with quad SPI interfaces.
12
+
This display driver supports AMOLED and LCD displays with quad SPI interfaces, using the MIPI DBI interface.
13
13
14
14
This driver has been tested with the following displays:
15
15
16
16
- Lilygo T4-S3
17
17
- Lilygo T-Display S3 AMOLED
18
+
- JC4832W535 board using AXS15231
18
19
19
20
Usage
20
21
-----
@@ -36,19 +37,16 @@ ESP-IDF. PSRAM is a requirement due to the size of the display buffer. A :ref:`q
36
37
37
38
.. code-block:: yaml
38
39
39
-
# Example minimal configuration entry
40
+
# Example configuration entry
40
41
41
42
display:
42
-
- platform: qspi_amoled
43
+
- platform: qspi_dbi
43
44
model: RM690B0
44
45
data_rate: 80MHz
45
-
spi_mode: mode0
46
46
dimensions:
47
47
width: 450
48
48
height: 600
49
49
offset_width: 16
50
-
color_order: rgb
51
-
invert_colors: false
52
50
brightness: 255
53
51
cs_pin: GPIOXX
54
52
reset_pin: GPIOXX
@@ -58,7 +56,8 @@ ESP-IDF. PSRAM is a requirement due to the size of the display buffer. A :ref:`q
58
56
Configuration variables:
59
57
************************
60
58
61
-
- **model** (**Required**): One of ``RM67162`` or ``RM690B0``.
59
+
- **model** (**Required**): One of ``CUSTOM``, ``RM67162`` or ``RM690B0``.
60
+
- **init_sequence** (*Optional*, A list of byte arrays): Specifies the init sequence for the display. This is required when using the ``CUSTOM`` model - but may be empty. If specified for other models this data will be sent after the pre-configured sequence.
62
61
- **cs_pin** (**Required**, :ref:`Pin Schema <config-pin_schema>`): The chip select pin.
63
62
- **reset_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The RESET pin.
64
63
- **enable_pin** (*Optional*, :ref:`Pin Schema <config-pin_schema>`): The display enable pin.
@@ -84,6 +83,7 @@ Configuration variables:
84
83
- **data_rate** (*Optional*): Set the data rate of the SPI interface to the display. One of ``80MHz``, ``40MHz``, ``20MHz``, ``10MHz`` (default), ``5MHz``, ``2MHz`` or ``1MHz``.
85
84
- **spi_mode** (*Optional*): Set the mode for the SPI interface to the display. Default is ``MODE0``.
86
85
- **invert_colors** (*Optional*): With this boolean option you can invert the display colors.
86
+
- **draw_from_origin** (*Optional*): When set, all partial display updates will start at the origin (0,0). Defaults to false.
87
87
- **lambda** (*Optional*, :ref:`lambda <config-lambda>`): The lambda to use for rendering the content on the display.
88
88
See :ref:`display-engine` for more information.
89
89
@@ -115,7 +115,7 @@ Lilygo T4-S3
115
115
reset_pin: 17
116
116
117
117
display:
118
-
- platform: qspi_amoled
118
+
- platform: qspi_dbi
119
119
model: RM690B0
120
120
data_rate: 80MHz
121
121
spi_mode: mode0
@@ -162,7 +162,7 @@ Lilygo T-Display S3 AMOLED
162
162
number: 21
163
163
164
164
display:
165
-
- platform: qspi_amoled
165
+
- platform: qspi_dbi
166
166
model: RM67162
167
167
id: main_lcd
168
168
dimensions:
@@ -178,9 +178,56 @@ Lilygo T-Display S3 AMOLED
178
178
enable_pin: 38
179
179
180
180
181
+
JC4832W535 3.5" LCD Board
182
+
*************************
183
+
184
+
This rotates the display into landscape mode using software rotation.
0 commit comments