Skip to content

Mui, memory - when it worth it? #2338

Answered by olikraus
ViacheslavK9 asked this question in Q&A
Discussion options

You must be logged in to vote

If you just need a very very small menu system (like this: https://github.com/olikraus/u8g2/blob/master/sys/arduino/u8g2_page_buffer/IconMenu/IconMenu.ino), then probably MUI is not required. MUI has been designed to maximize reuse of code. So if you have multiple menues, the code doesn't increase much. For a new form, just a view bytes are required.

In general, the question is, what exactly occupies your memory. I personally suggest to look into the linker map file to check the memory consumption of other libs.
U8g2 (and MUI) are designed to minimize memory consumption, but this might not be true for other libs.

MUI size estimation (SSD1306 HW I2C, AVR):
MUICountDown requires 14222 Bytes

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ViacheslavK9
Comment options

Answer selected by ViacheslavK9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants