標(biāo)題:
關(guān)于LCD12864顯示浮點(diǎn)數(shù)的問題,程序沒怎么看懂
[打印本頁]
作者:
huaxinnan
時間:
2018-7-21 11:06
標(biāo)題:
關(guān)于LCD12864顯示浮點(diǎn)數(shù)的問題,程序沒怎么看懂
adcx=Get_Adc_Average(ADC_Channel_0,
10
); temp=(
float
)adcx*(
3.3
/
4096
);
sprintf
(buffer,
"%5.2f"
,temp);
//浮點(diǎn)型數(shù)據(jù)轉(zhuǎn)為指定格式的字符串
LCD_ShowString(
152
,
150
,
200
,
16
,
16
,buffer);
//直接送字符顯示函數(shù)
求
LCD_ShowString(
152
,
150
,
200
,
16
,
16
,buffer); 子
函數(shù)內(nèi)容。
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1