Browse Source

change: 补个u8g2.init影子函数

Wendal Chen 3 years ago
parent
commit
70b08dc962
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/u8g2/luat_lib_u8g2.c

+ 1 - 0
components/u8g2/luat_lib_u8g2.c

@@ -827,6 +827,7 @@ static int l_u8g2_draw_gtfont_utf8(lua_State *L) {
 static const rotable_Reg_t reg_u8g2[] =
 {
     { "begin",       ROREG_FUNC(l_u8g2_begin)},
+    { "init",        ROREG_FUNC(l_u8g2_begin)}, // 兼容disp.init函数
     { "close",       ROREG_FUNC(l_u8g2_close)},
     { "ClearBuffer", ROREG_FUNC(l_u8g2_ClearBuffer)},
     { "SendBuffer",  ROREG_FUNC(l_u8g2_SendBuffer)},