校准结果是哪段代码校准点参数:01与2302与1312与03这三组点的距离const u8 TP_ADJDIS_TBL34=012302131203;校准距离计算表触摸屏校准代码得到四个校准参数void TP_Adjustvoid u16 pos_temp42;坐标缓存值 u8 cnt=0; u16 d1d2; float fac; u16 outtime=0; u32 tem1tem2; LCD
校准结果的部分代码为:
tp_dev.xfac=(float)(lcddev.width-40)/(pos_temp[1][0]-pos_temp[0][0]);//得到 xfac tp_dev.xoff=(lcddev.width-tp_dev.xfac*(pos_temp[1][0]+pos_temp[0][0]))/2;//得到 xoff tp_dev.yfac=(float)(lcddev.height-40)/(pos_temp[2][1]-pos_temp[0][1]);//得到 yfac tp_dev.yoff=(lcddev.height-tp_dev.yfac*(pos_temp[2][1]+pos_temp[0][1]))/2;//得到 yoff
原文地址: https://www.cveoy.top/t/topic/bOF6 著作权归作者所有。请勿转载和采集!