Replies: 1 comment
-
|
Addition: My code is inspired by: #2569 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am trying to run a minimal MUI example on an AVR MCU (ATmega328P) using pure C via PlatformIO.
My display initializes correctly, and standard u8g2_DrawStr works perfectly. However, mui_Draw(&mui) renders an empty screen.
I cannot define muif_list globally due to the initializer element is not constant error. Therefore, I moved muif_list inside main() as a local array.
Calling mui_GotoForm(&mui, 1, 0) returns 1 - program displays "Menu OK".
Is it possible that defining muif_list locally inside main() breaks the MUI internal pointer logic in pure C? Does anyone know what I am missing? Any hints would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions