LUA Reference Guide
Search…
EdgeTX v2.7
EdgeTX 2.7 Lua Reference Guide
Introduction
Part I - Script Type Overview
Part II - EdgeTX Lua API Programming Guide
Part III - EdgeTX Lua API Reference
Constants
Key Event Constants
Touch Event Constants
Flags and Pattern Constants
Color Constants
Special Character Constants
Screen Constants
Logical Switch Function Constants
Special Function Constants
General Functions
Model Functions
Lcd Functions
Bitmap Functions
Filesystem
Part IV - Advanced Topics
Appendix
Powered By
GitBook
Flags and Pattern Constants
Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
Flags
Name
Description
Version
Notes
0
normal font, default precision for numeric
​
​
XXLSIZE
jumbo font
2.0.6
​
DBLSIZE
double size font
​
​
MIDSIZE
mid sized font
​
​
SMLSIZE
small font
​
​
BOLD
bold font
​
Only color displays. This is a font size on its own - cannot be combined with other font size flags.
SHADOWED
shadow font
​
Only color displays
INVERS
inverted display
​
​
BLINK
blinking text
​
​
LEFT
left justify
2.0.6
Default for most functions not related to bitmaps
RIGHT
right justify
​
​
CENTER
center justify
​
Only color displays
VCENTER
center vertically
2.5.0
Only color displays
PREC1
single decimal place
​
​
PREC2
two decimal places
​
​
GREY_DEFAULT
grey fill
​
​
TIMEHOUR
display hours
​
Only for drawTimer
Patterns
Name
Description
FORCE
pixels will be black
ERASE
pixels will be white
DOTTED
lines will appear dotted
Previous
Touch Event Constants
Next
Color Constants
Last modified
4mo ago
Export as PDF
Copy link
Contents
Flags
Patterns