Skip to content

form.addRadioHardware

since 1.6.3

Add the radio hardware widget (sticks / pots / sliders / switches)

form.addRadioHardware(line, rect)

Parameters

Name Type Required Description
line FormLine yes the line where the widget should be added
rect Rect yes the coordinates

Returns

Nothing.

Examples

From the official Ethos documentation
local w, h = lcd.getWindowSize()
form.addRadioHardware(nil, {x=0, y=0, w=w, h=h})