Skip to content

Commit 58faba2

Browse files
address review comments
1 parent 6be083e commit 58faba2

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

content/components/display/hub75.md

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -313,40 +313,10 @@ The three key settings for LVGL are:
313313
This action allows you to dynamically change the brightness of the display at runtime.
314314

315315
```yaml
316-
# Example: Control brightness with a template number
317-
number:
318-
- platform: template
319-
name: "Display Brightness"
320-
id: brightness
321-
icon: "mdi:brightness-6"
322-
min_value: 1
323-
max_value: 255
324-
step: 1
325-
optimistic: true
326-
restore_value: true
327-
initial_value: 128
328-
on_value:
329-
then:
330-
- hub75.set_brightness:
331-
id: matrix_display
332-
brightness: !lambda return x;
333-
334-
# Example: Turn display off/on by setting brightness
335-
switch:
336-
- platform: template
337-
name: "Display Power"
338-
id: display_power
339-
icon: "mdi:power"
340-
restore_mode: RESTORE_DEFAULT_ON
341-
optimistic: true
342-
turn_on_action:
343-
- hub75.set_brightness:
344-
id: matrix_display
345-
brightness: 128
346-
turn_off_action:
347-
- hub75.set_brightness:
348-
id: matrix_display
349-
brightness: 0
316+
on_...:
317+
- hub75.set_brightness:
318+
id: matrix_display
319+
brightness: 128
350320
```
351321

352322
**Configuration variables:**

0 commit comments

Comments
 (0)