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: content/components/bluetooth_proxy.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,12 @@ please search for it in the [Home Assistant Integrations](https://www.home-assis
45
45
46
46
```yaml
47
47
bluetooth_proxy:
48
+
# Active connections are now enabled by default
49
+
# To disable active connections (previous default behavior), use:
50
+
# active: false
48
51
```
49
52
50
-
- **active** (*Optional*, boolean): Enables proxying active connections. Defaults to `false`.
53
+
-**active** (*Optional*, boolean): Enables proxying active connections. Defaults to `true`.
51
54
-**cache_services** (*Optional*, boolean): Enables caching GATT services in NVS flash storage which significantly speeds up active connections. Defaults to `true` when using the ESP-IDF framework.
52
55
-**connection_slots** (*Optional*, int): The maximum number of BLE connection slots to use.
53
56
Each configured slot consumes ~1KB of RAM. This can only be adjusted when using
Valid values range from ``1`` (lowest quality, highest compression) to ``100`` (best quality, least compression). Defaults: ``80``.
37
+
38
+
- **buffer_size** (*Optional*, int): Initial size of the output buffer in bytes, used to store the JPEG-encoded image data.
39
+
- Minimum: 1024 bytes
40
+
- Maximum: 2097152 bytes (2 MB), sufficient for ESP32-S3 and ESP32-P4
41
+
- Default: ``4096``.
42
+
43
+
- **buffer_expand_size** (*Optional*, int): Number of bytes to expand the output buffer if it is too small to hold the JPEG-encoded image. A value of ``0`` disables expansion.
44
+
- Maximum: 2097152 bytes (2 MB), sufficient for ESP32-S3 and ESP32-P4
Copy file name to clipboardExpand all lines: content/components/lvgl/_index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ display:
37
37
update_interval: never
38
38
```
39
39
40
+
{{< img src="lvgl-hello.png" width="400" >}}
41
+
40
42
To make LVGL your own you will need to add widgets to the display. For example, to show a label with the text "Hello World!" in the center of the screen:
Copy file name to clipboardExpand all lines: content/components/lvgl/widgets.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,7 @@ In addition to visual styling, each widget supports some boolean **flags** to in
119
119
LVGL only supports **integers** for numeric `value`. Visualizer widgets can't display floats directly, but they allow scaling by 10s. Some examples in the {{< docref "/cookbook/lvgl" "Cookbook" >}} cover how to do that.
120
120
121
121
{{< /note >}}
122
+
122
123
{{< anchor "lvgl-widget-parts" >}}
123
124
124
125
## Widget parts
@@ -1575,13 +1576,15 @@ The spinbox contains a numeric value (as text) which can be increased or decreas
1575
1576
- **range_from** (*Optional*, float): The minimum value allowed to set the spinbox to. Defaults to `0`.
1576
1577
- **range_to** (*Optional*, float): The maximum value allowed to set the spinbox to. Defaults to `100`.
1577
1578
- **rollover** (*Optional*, boolean): While increasing or decreasing the value, if either the minimum or maximum value is reached with this option enabled, the value will change to the other limit. If disabled, the value will remain at the minimum or maximum value. Defaults to `false`.
1578
-
- **step** (*Optional*, float): The granularity with which the value can be set. Defaults to `1.0`.
1579
+
- **selected_digit** (*Optional*, int): The ordinal number of the digit to be initially focused. Defaults to `0` which
1580
+
represents the least significant digit. This digit will
1581
+
be incremented or decremented by one when `increment` or `decrement` actions are called.
1579
1582
- **value** (*Optional*, float): Actual value to be shown by the spinbox at start. Defaults to `0`.
1580
1583
1581
1584
{{< note >}}
1582
1585
The sign character will only be shown if the set range contains negatives.
1583
-
1584
1586
{{< /note >}}
1587
+
1585
1588
**Actions:**
1586
1589
1587
1590
- `lvgl.spinbox.update`[action](#actions-action) updates the widget styles and properties from the specific options above, just like the [lvgl.widget.update](#lvgl-automation-actions) action is used for the common styles, states or flags.
Copy file name to clipboardExpand all lines: content/components/mapping.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ description: "Mapping Component"
3
3
title: "Mapping Component"
4
4
---
5
5
6
-
The `mapping` component allows you to create a map or dictionary that allows a one-to-one translation from keys to values. This enables e.g. mapping a string to a number or vice versa, or mapping a string such as a weather condition to an image.
6
+
The `mapping` component allows you to create a map or dictionary that allows a one-to-one translation from keys to
7
+
values. This enables e.g. mapping a string to a number or vice versa, or mapping a string such as a weather condition to an image.
7
8
8
9
```yaml
9
10
# Example configuration entry
@@ -45,7 +46,11 @@ You can also map to a class. This is useful when you want to map to a more compl
45
46
46
47
## Using a mapping
47
48
48
-
A mapping defined in this component can be used in lambdas in other components. The mapping can be accessed using the `id` function, and the value can be looked up using the `[]` operator as per the above example.
49
+
A mapping defined in this component can be used in lambdas in other components. The mapping can be accessed using
50
+
the ``id`` function, and the value can be looked up using the ``[]`` operator as per the above example, or the ``get`` function.
51
+
A map may be updated at run time using a lambda call, e.g. ``map.set("key", value)``.
52
+
53
+
Maps are stored in RAM, but will use PSRAM if available.
49
54
50
55
A more complex example follows:
51
56
@@ -84,8 +89,14 @@ display:
84
89
- platform: ...
85
90
# update the display drawing random text in random colors
86
91
lambda: |-
87
-
auto color = color_map[random_uint32() % 3];
92
+
auto color = color_map.get(random_uint32() % 3]); # Uses get() to index the color_map
Copy file name to clipboardExpand all lines: content/components/nrf52.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,32 @@ There are two ways to reference GPIO pins:
71
71
1. By pin name, e.g., `P0.15` or `P1.11`.
72
72
1. By pin number, e.g., `15` or `43`.
73
73
74
+
## DFU (Device Firmware Update)
75
+
76
+
The ``dfu`` component enables automatic entry into **DFU (Device Firmware Update)** mode by monitoring
77
+
the USB CDC serial connection. When a host opens the port at **1200 baud**, the component triggers
78
+
a reset via a GPIO pin to put the device into DFU mode.
79
+
80
+
ESPHome uses this component internally when uploading firmware via:
81
+
82
+
```bash
83
+
esphome upload d.yaml
84
+
```
85
+
86
+
### Example Configuration
87
+
88
+
```yaml
89
+
nrf52:
90
+
dfu:
91
+
reset_pin:
92
+
number: 14
93
+
inverted: true
94
+
```
95
+
96
+
### Configuration variables
97
+
98
+
- **reset_pin** (*Required*, [Pin](#config-pin)): The pin to use for trigger a hardware reset. This pin should be connected to the MCU's reset line or to a circuit that causes the bootloader to enter DFU mode after reset.
0 commit comments