mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Improve documentation
This commit is contained in:
parent
7c6dd36ee1
commit
0110578bfe
1 changed files with 2 additions and 1 deletions
|
@ -216,6 +216,7 @@ Display a number at (x,y)
|
||||||
* `PREC1` display with one decimal place (number 386 is displayed as 38.6)
|
* `PREC1` display with one decimal place (number 386 is displayed as 38.6)
|
||||||
* `PREC2` display with tow decimal places (number 386 is displayed as 3.86)
|
* `PREC2` display with tow decimal places (number 386 is displayed as 3.86)
|
||||||
* other general LCD flag also apply
|
* other general LCD flag also apply
|
||||||
|
* default alignement is RIGHT
|
||||||
|
|
||||||
@status current Introduced in 2.0.0
|
@status current Introduced in 2.0.0
|
||||||
*/
|
*/
|
||||||
|
@ -226,7 +227,7 @@ static int luaLcdDrawNumber(lua_State *L)
|
||||||
int y = luaL_checkinteger(L, 2);
|
int y = luaL_checkinteger(L, 2);
|
||||||
int val = luaL_checkinteger(L, 3);
|
int val = luaL_checkinteger(L, 3);
|
||||||
unsigned int att = luaL_optunsigned(L, 4, 0);
|
unsigned int att = luaL_optunsigned(L, 4, 0);
|
||||||
if (!(att & LEFT)) att |= RIGHT;
|
if (!(att & LEFT)) att |= RIGHT;
|
||||||
lcdDrawNumber(x, y, val, att);
|
lcdDrawNumber(x, y, val, att);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue