1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 12:25:12 +03:00

Bsongis/radio tools (#6484)

Lua tools now displayed in RADIO / TOOLS
Add a function to write CENTERED text with lcdDrawText
This commit is contained in:
Bertrand Songis 2019-06-08 10:42:29 +02:00 committed by GitHub
parent a3cc0ee830
commit 56a31f20d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 144 additions and 57 deletions

View file

@ -1418,7 +1418,7 @@ const luaL_Reg opentxLib[] = {
{ "crossfireTelemetryPush", luaCrossfireTelemetryPush },
#endif
{ "serialWrite", luaSerialWrite },
{ NULL, NULL } /* sentinel */
{ nullptr, nullptr } /* sentinel */
};
const luaR_value_entry opentxConstants[] = {
@ -1432,6 +1432,7 @@ const luaR_value_entry opentxConstants[] = {
{ "BLINK", BLINK },
{ "RIGHT", RIGHT },
{ "LEFT", LEFT },
{ "CENTER", CENTERED },
{ "PREC1", PREC1 },
{ "PREC2", PREC2 },
{ "VALUE", INPUT_TYPE_VALUE },
@ -1622,5 +1623,5 @@ const luaR_value_entry opentxConstants[] = {
{"UNIT_BITFIELD", UNIT_BITFIELD},
{"UNIT_TEXT", UNIT_TEXT},
#endif
{ NULL, 0 } /* sentinel */
{ nullptr, 0 } /* sentinel */
};