Skip to main content

Color Display Widgets

The color display allows you to display data using GUI widgets on panels. The are configured using the API. The table below lists the widgets and their API. There is a limit of 24 controls across the 8 panels.

All the controls have properties and data which you can manipulate at run-time.

WidgetAPINotes
LEDaddControlLED
ImageFromRomaddControlPicture
ImageFromFileaddControlPictureFromFile
LogListaddControlLogList
PlotaddControlPlot
TextaddControlText
NumberaddControlNumber
BargraphaddControlBargraph
ButtonaddControlButton

Properties for Controls

The table below lists the APIs properties for the controls

APIDescription
setControlValueMinMaxsets min max property of control in int32
setControlValueMinMaxFsets min max property of control in float32
setControlPropertySets the a property of a control.Not in wasm yet
setPlotDataSets color of plotNot implemented in wasm yet. Sets colors of plots

Data for the Controls

The table below lists the APIs for the data in the control.

APIDescriptionNotes
setListItemTextsets a log text when implementing list modeMake sure to have a valid list index
setListItemSelectedsets the selected item in the list
setListItemTopIndexset the top item in the list
clearLogOrPlotDataclears a log or plot buffer
addControlPlotDataadds data to a plot buffer
setLogDataTextadds test to the list
setControlValuesets the value of the control in int32
setControlValueFloatsets the value of teh control in float32