Skip to content

Commit 26d69b9

Browse files
authored
Add qrcode
1 parent 324a633 commit 26d69b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/OpenHASP.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ OpenHASP Class|Embedded LVGL class
166166
`slider`|`lv.slider`
167167
`arc`|`lv.arc`
168168
`textarea`|`lv.textarea`
169+
`qrcode`|`lv.qrcode`
169170

170171
You can also import custom widget as long as they inherit from `lv.obj` and the class name matches the module name.
171172

@@ -270,6 +271,15 @@ Attribute name|LVGL equivalent|Details
270271
`angle`||The length of the spinning segment in degrees - cannot be changed after initial value
271272
`speed`||The time for 1 turn in ms - cannot be changed after initial value
272273

274+
Attributes specific to `qrcode`
275+
276+
Attribute name|LVGL equivalent|Details
277+
:---|:---|:---
278+
`qr_size`||Size in pixels of the QRCode, always square (height = width). This cannot be changed once the object is created.
279+
`qr_dark_color`||Color used for the dark pixels. This cannot be changed once the object is created.
280+
`qr_light_color`||Color used for the light pixels. This cannot be changed once the object is created.
281+
`qr_text`||(mandatory) String to encode as a QRCode, can be changed at any moment.
282+
273283
## Tasmota extensions
274284

275285
### Update sensor value via rules

0 commit comments

Comments
 (0)