[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()
描述
Set LED bright.
語法
void setLedBright(lv_obj_t* id, int bright);
void setLedBright(char* name, int bright);
參數
[in] id
Object ID.[in] name
Object Name.[in] bright
Set LED bright.
Return
無
範例
#include "myhmi.h" void setup() { Hmi.begin(); // ... Hmi.setLedBright(p1led1, 100); } void loop() { // ... }
Please see the 86HMI 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.