[Object General Functions]
Description
Set the object to enable or disable.
Syntax
void setEnable(lv_obj_t* obj, bool enable);
Parameters
[in] obj
Object.[in] enable
Bool, enable or disable.
Return
None.
Example
#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 User Manual for more instructions on 86HMI widgets and API usage.