Skip to content

Conversation

@Riksu9000
Copy link
Contributor

value_str is a way to add text on a button without a separate label.
This saves having an extra label object, but I believe it's removed in LVGL8.
Disabling this saves some memory, but using value_str everywhere would probably also save some memory. value_str can make slightly cleaner code, but isn't good for future proofing. Thoughts?

@Riksu9000 Riksu9000 added this to the 1.11.0 milestone Aug 11, 2022
@JF002
Copy link
Collaborator

JF002 commented Aug 15, 2022

Well if value_str is removed in LVGL8, it might make sense to remove it in case we want to update LVGL in the future.
Regarding memory usage, it could be interesting to check how value_str is implemented in lv_button : they might instanciate a lv_label under the hood.

value_str is a way to add text on a button without a separate label.
This saves having an extra label object, but uses more memory and is
removed in LVGL8
@JF002 JF002 merged commit b9224c1 into InfiniTimeOrg:develop Sep 17, 2022
@Riksu9000 Riksu9000 deleted the disable-value_str branch October 6, 2022 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants