Mui, memory - when it worth it? #2338
-
Hi again, Oliver! Just a 2 general questions regarding memory consumption:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. MUI size estimation (SSD1306 HW I2C, AVR): So from these examples MUI requires just 4.5KB. What will your other libs consume?
|
Beta Was this translation helpful? Give feedback.
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