1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Add qr code support for displays (#2952)

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
Wouter van der Wal
2022-01-26 10:20:45 +01:00
committed by GitHub
parent ef832becf1
commit a718ac7ee0
10 changed files with 167 additions and 4 deletions

View File

@@ -2154,6 +2154,7 @@ display:
pages:
- id: page1
lambda: |-
it.qr_code(0, 0, id(homepage_qr));
it.rectangle(0, 0, it.get_width(), it.get_height());
- id: page2
lambda: |-
@@ -2577,3 +2578,7 @@ select:
- one
- two
optimistic: true
qr_code:
- id: homepage_qr
value: https://esphome.io/index.html

View File

@@ -1351,6 +1351,10 @@ daly_bms:
update_interval: 20s
uart_id: uart1
qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
button:
- platform: output
id: output_button