Jomelo / LCDMenuLib2

Create a tree menu. Use it with different lcd types / console output / ssh console.
MIT License
249 stars 46 forks source link

MСU reboot when using UTF8 and display U8G2_ST7567_JLX12864 on ESP32 #66

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello! To use the Cyrillic alphabet, I connected the Cyrillic font "u8g2_font_6x13_t_cyrillic" and in the rendering functions I replaced the "drawStr" with "drawUTF8". At the same time, in the menu items "callback_function" is "NULL" or "mFunc_back", everything is displayed well, and when the "callback_function" is "mFunc_information" or "mFunc_timer_info" or other items are displayed, the MSU goes into reboot. Help me! )))

ghost commented 4 years ago

I solved the problem by rewriting the loop from the view

void loop() { LCDML.loop(); }

in view

void loop() { LCDML.loop_menu(); LCDML.loop_control(); }