Search found 1 match
- 2023年 Dec 16日 16:51
- Forum: TuyaOS-联网单品开发
- Topic: 【避坑】sdk-2.3.3 adc概率open异常
- Replies: 1
- Views: 801
【避坑】sdk-2.3.3 adc概率open异常
STATIC VOID ADC_Callback(PVOID_T arg) { UINT16_T adc_buf = 0; tuya_adc_t *adc_dev = (tuya_adc_t *)arg; while(1) { ... while(tuya_adc_convert(adc_dev,&adc_buf,1) != 0) { PR_ERR("ADC gather error!"); vTaskDelay(pdMS_TO_TICKS(100)); } ... } } OPERATE_LIGHT ADC_Init(void) { tuya_adc_t *ad...