mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
parent
a5f760e823
commit
f59e939463
1 changed files with 15 additions and 0 deletions
|
@ -62,6 +62,20 @@ static int luaLcdClear(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*luadoc
|
||||
@function lcd.backlightOn()
|
||||
|
||||
Switches backlight on
|
||||
|
||||
@status current Introduced in 2.3.6
|
||||
*/
|
||||
static int luaLcdBacklightOn(lua_State *L)
|
||||
{
|
||||
if (!luaLcdAllowed) return 0;
|
||||
backlightOn();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*luadoc
|
||||
@function lcd.drawPoint(x, y)
|
||||
|
||||
|
@ -861,6 +875,7 @@ static int luaRGB(lua_State *L)
|
|||
const luaL_Reg lcdLib[] = {
|
||||
{ "refresh", luaLcdRefresh },
|
||||
{ "clear", luaLcdClear },
|
||||
{ "backlightOn", luaLcdBacklightOn },
|
||||
{ "drawPoint", luaLcdDrawPoint },
|
||||
{ "drawLine", luaLcdDrawLine },
|
||||
{ "drawRectangle", luaLcdDrawRectangle },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue