feat(lua): support for using LVGL objects on colorlcd (#4887)

This commit is contained in:
philmoz
2024-06-13 13:16:07 +10:00
committed by GitHub
parent 22128df1cd
commit b4e33fc439
30 changed files with 2257 additions and 123 deletions
+8
View File
@@ -2165,7 +2165,15 @@ Get percent of already used Lua instructions in current script execution cycle.
*/
static int luaGetUsage(lua_State * L)
{
#if defined(COLORLCD)
if (luaLvglManager && luaLvglManager->useLvglLayout()) {
lua_pushinteger(L, luaLvglManager->refreshInstructionsPercent);
} else {
lua_pushinteger(L, instructionsPercent);
}
#else
lua_pushinteger(L, instructionsPercent);
#endif
return 1;
}