[Object General Functions]
描述
Set the object to enable or disable.
語法
void setEnable(lv_obj_t* obj, bool enable);
參數
[in] obj
Object.[in] enable
Bool, enable or disable.
Return
無
範例
#include "myhmi.h"
void setup() {
Hmi.begin();
// put your setup code here, to run once:
Hmi.setEnable(p1b1, false);
}
void loop() {
// ...
}Please see the 86HMI Editor使用手冊 for more instructions on 86HMI widgets and API usage.