Skip to content

Commit 8a91091

Browse files
authored
Merge branch 'next' into global_links
2 parents 9e78fba + 5e073bb commit 8a91091

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

content/components/i2c.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ params:
1010
{{< anchor "i2c" >}}
1111

1212
This component sets up the I²C bus for your ESP32, ESP8266, RP2040 or NRF52. In order for these components
13-
to work correctly, you need to define the I²C bus in your configuration. Please note the ESP
14-
will enable its internal 10kΩ pullup resistors for these pins, so you usually don't need to
15-
put on external ones. You can use multiple devices on one I²C bus as each device is given a
13+
to work correctly, you need to define the I²C bus in your configuration. On ESP32 (both Arduino and ESP-IDF
14+
frameworks), internal pullup resistors are enabled by default. On ESP8266, the internal 10kΩ pullup resistors
15+
are always enabled. External pullups are still recommended for longer wire runs or multiple devices.
16+
You can use multiple devices on one I²C bus as each device is given a
1617
unique address for communicating between it and the ESP. You can do this by hopping
1718
wires from the two lines (SDA and SCL) from each device board to the next device board or by
1819
connecting the wires from each device back to the two I²C pins on the ESP.
@@ -43,8 +44,14 @@ i2c:
4344
NRF52 supports only `100kHz` and `400kHz`.
4445

4546
- **timeout** (*Optional*, [Time](/guides/configuration-types#time)): Set the I²C bus timeout.
46-
Defaults to the framework defaults (`100us` on `esp32` with `esp-idf`, `50ms` on `esp32` with `Arduino`,
47-
`1s` on `esp8266` and `1s` on `rp2040` ). Maximum on `esp-idf` is 13ms.
47+
Defaults to the framework defaults (`100us` on `esp32`, `1s` on `esp8266` and `1s` on `rp2040`).
48+
Maximum on `esp32` is 13ms.
49+
50+
- **sda_pullup_enabled** (*Optional*, boolean): Enable the internal pullup resistor for the SDA pin.
51+
Defaults to `true`. Only available on ESP32.
52+
53+
- **scl_pullup_enabled** (*Optional*, boolean): Enable the internal pullup resistor for the SCL pin.
54+
Defaults to `true`. Only available on ESP32.
4855

4956
- **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually specify the ID for this I²C bus if you need multiple I²C buses.
5057

content/components/lvgl/widgets.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,16 @@ The arc consists of a background and a foreground arc. The indicator foreground
282282
- **arc_opa** (*Optional*, [opacity](/components/lvgl#lvgl-opacity)): Opacity of the arc.
283283
- **arc_rounded** (*Optional*, boolean): Make the end points of the arcs rounded. `true` rounded, `false` perpendicular line ending.
284284
- **arc_width** (*Optional*, int16): Set the width of the arcs in pixels.
285-
- **change_rate** (*Optional*, int8): If the arc is pressed the current value will set with a limited speed according to the set change rate. The change rate is defined in degree/second. Defaults to `720`.
285+
- **change_rate** (*Optional*, uint16): Limits the speed at which the arc value changes when touched or dragged. The change rate is defined in degree/second. Defaults to `720`.
286286
- **end_angle** (*Optional*, 0-360): end angle of the arc background (see note). Defaults to `45`.
287287
- **indicator** (*Optional*, list): Settings for the indicator *part* to show the value. Supports a list of [styles](/components/lvgl#lvgl-styling) and state-based styles to customize. Draws *another arc using the arc style* properties. Its padding values are interpreted relative to the background arc.
288288
- **knob** (*Optional*, list): Settings for the knob *part* to control the value. Supports a list of [styles](/components/lvgl#lvgl-styling) and state-based styles to customize. Draws a handle on the end of the indicator using all background properties and padding values. With zero padding the knob size is the same as the indicator's width. Larger padding makes it larger, smaller padding makes it smaller.
289-
- **max_value** (*Optional*, int8): Maximum value of the indicator. Defaults to `100`.
290-
- **min_value** (*Optional*, int8): Minimum value of the indicator. Defaults to `0`.
289+
- **max_value** (*Optional*, int16): Maximum value of the indicator. Defaults to `100`.
290+
- **min_value** (*Optional*, int16): Minimum value of the indicator. Defaults to `0`.
291291
- **mode** (*Optional*, string): `NORMAL` : the indicator is drawn from the minimum value to the current. `REVERSE` : the indicator is drawn counter-clockwise from the maximum value to the current. `SYMMETRICAL` : the indicator is drawn from the middle point to the current value. Defaults to `NORMAL`.
292292
- **rotation** (*Optional*, 0-360): Offset to the 0 degree position. Defaults to `0.0`.
293293
- **start_angle** (*Optional*, 0-360): start angle of the arc background (see note). Defaults to `135`.
294-
- **value** (*Optional*, int8): Actual value of the indicator at start, in `0` -`100` range. Defaults to `0`.
294+
- **value** (*Optional*, int16): Actual value of the indicator at start, in `0` -`100` range. Defaults to `0`.
295295
- Any [Styling](/components/lvgl#lvgl-styling) and state-based option to override styles inherited from parent. The arc's size and position will respect the padding style properties.
296296

297297
If the `adv_hittest` [flag](#lvgl-widget-flags) is enabled the arc can be clicked through in the middle. Clicks are recognized only on the ring of the background arc.
@@ -303,7 +303,14 @@ If the `adv_hittest` [flag](#lvgl-widget-flags) is enabled the arc can be clicke
303303

304304
- `lvgl.arc.update` [action](/automations/actions#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.
305305
- **id** (**Required**): The ID or a list of IDs of arc widgets to be updated.
306-
- **value** (*Optional*, int8): New value of the indicator.
306+
- **change_rate** (*Optional*, uint16): New change rate in degree/second.
307+
- **end_angle** (*Optional*, 0-360): New end angle of the arc background.
308+
- **max_value** (*Optional*, int16): New maximum value of the indicator.
309+
- **min_value** (*Optional*, int16): New minimum value of the indicator.
310+
- **mode** (*Optional*, string): New indicator mode.
311+
- **rotation** (*Optional*, 0-360): New offset to the 0 degree position.
312+
- **start_angle** (*Optional*, 0-360): New start angle of the arc background.
313+
- **value** (*Optional*, int16): New value of the indicator.
307314
- Any [Styling](/components/lvgl#lvgl-styling) and state-based option to override styles inherited from parent. The arc's size and position will respect the padding style properties.
308315

309316
**Triggers:**

0 commit comments

Comments
 (0)