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:
committed by
GitHub
parent
ef832becf1
commit
a718ac7ee0
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user