Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
float SysInfo.dcin_voltage=11.3; co_printf("vbat:%d Vin-%3.2f \r\n", SysInfo.dcin_voltage_adc_resault[3], SysInfo.dcin_voltage); 这样写,打印出来后面的不是浮点数。
使用printf("vbat:%d Vin-%3.2f \r\n", SysInfo.dcin_voltage_adc_resault[3], SysInfo.dcin_voltage); 这样写, 就可以了,底层库帮我们封装并通过串口1实现了。