melta101
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
lv_label_set_text makes the label like a string literal(aka we cant change it in runtime as it goes to the read-only memory part)
while the other is argument based string(aka we can change it dynamically/runtime)
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
Makes sense
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
So basically one for concatenation and one for whole strings
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
Yes
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
just did some trial and error
turns out
the "formatted" string wasn't the one i was thinking like itallic, bold etc...
it was related to passing variables similar to printf
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
Assume you had a label that could go
italic
when processing and normal when done.14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
well the one sets formatted text and the other sets text with the default format
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
kinda unclear what the explaination
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
but the format are handled by styles, not objects specifically, plus the the parameter to pass doesnt let it pass styles or format
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
It's what @techielew said above
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
https://docs.lvgl.io/master/API/widgets/label/lv_label.html#_CPPv421lv_label_set_text_fmtP8lv_obj_tPKcz
https://docs.lvgl.io/master/API/widgets/label/lv_label.html#_CPPv417lv_label_set_textP8lv_obj_tPKc
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
@fbiego any chance you can clarify this?
14 replies
DIIDevHeads IoT Integration Server
•Created by melta101 on 1/23/2025 in #📦-middleware-and-os
what's the difference between lv_label_set_text and lv_label_set_text_fmt?
isn't that just formatting of the text vs plain txt?
14 replies