local name = "WidgetName"
-- Create a table with default options
-- Options can be changed by the user from the Widget Settings menu
-- Notice that each line is a table inside { }
-- BOOL is actually not a boolean, but toggles between 0 and 1
{ "Value", VALUE, 1, 0, 10},
{ "Color", COLOR, ORANGE },
{ "Text", STRING, "Max8chrs" }
local function create(zone, options)
-- Runs one time when the widget instance is registered
-- Store zone and options in the widget table for later use
-- Add local variables to the widget table,
-- unless you want to share with other instances!
-- Return widget table to EdgeTX
local function update(widget, options)
-- Runs if options are changed from the Widget Settings menu
local function background(widget)
-- Runs periodically only when widget instance is not visible
local function refresh(widget, event, touchState)
-- Runs periodically only when widget instance is visible
-- If full screen, then event is 0 or event value, otherwise nil