[Visualization widgets]
Object Functions
LED object.

LED Properties.

Identifier:
- ID: Unique number that identifies the object.
- Name: User-definable name for the object. It can be used with 86HMI API.
Content:
- Bright: Default LED bright value.
Geometry:
- X: Object X coordinate.
- Y: Object Y coordinate.
- Width: Object width.
- Height: Object height.
Options:
- ObjColor: Choose from 4 themed colors. For font configuration instructions, please refer to Theme Management.
- Order: Object order. It can adjust the object order by up/down, which can be viewed on the Object List.
API Functions
setLedBright()
Description
Set LED bright.
Syntax
void setLedBright(lv_obj_t* id, int bright);
void setLedBright(char* name, int bright);
Parameters
[in] id
Object ID.[in] name
Object Name.[in] bright
Set LED bright.
Return
None.
Example
#include "myhmi.h"
void setup() {
Hmi.begin();
// ...
Hmi.setLedBright(p1led1, 100);
}
void loop() {
// ...
}Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.