|
- void ICACHE_FLASH_ATTR userInit(void)
- {
- gizMemset((uint8_t *)¤tDataPoint, 0, sizeof(dataPoint_t));
- /** Warning !!! DataPoint Variables Init , Must Within The Data Range **/
- /*
- currentDataPoint.valueLED_OnOff = ;
- currentDataPoint.valueLED_Color = ;
- currentDataPoint.valueLED_R = ;
- currentDataPoint.valueLED_G = ;
- currentDataPoint.valueLED_B = ;
- currentDataPoint.valueMotor_Speed = ;
- currentDataPoint.valueInfrared = ;
- currentDataPoint.valueTemperature = ;
- currentDataPoint.valueHumidity = ;
- currentDataPoint.valueAlert_1 = ;
- currentDataPoint.valueAlert_2 = ;
- currentDataPoint.valueFault_LED = ;
- currentDataPoint.valueFault_Motor = ;
- currentDataPoint.valueFault_TemHum = ;
- currentDataPoint.valueFault_IR = ;
- */
- }
复制代码 在gizwits_product.c文件中 ,userInit函数是赋初值的地方,另外枚举类型的在没有明确赋值的情况下,默认是从0开始,依次递增+1
|
|