文件名称:Touchscreen
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:7.27kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
以总线方式操作控制TFT彩色液晶,模拟SPI控制触摸屏,将按下的点显示在TFT 2.4寸液晶上。因此,可以用此程序来在屏上画图案。由于触摸屏在采集时每次采集的值都有误差,这也是使用触摸屏较为麻烦的地方,通过查资料,发现
目前处理此问题主要通过软件算法实现,并且功能稳定的往往算法想法复杂,本程序采用简单的算法来
实现:当某一点按下后,在保持不放开的前提下,采集7个数据,并对数据进行升序排列,取中间3个数据
作为有效数据,并将平均值作为按下后的X,Y坐标。-Bus operation control TFT color LCD, to simulate SPI control touch screen display will press the point on a TFT 2.4 inch LCD. Therefore, it is possible to use this procedure to drawn on the screen pattern. Information search, found mainly achieved through software algorithms to deal with this problem, and stable function often complex algorithm ideas, the program uses the touch screen in each acquisition when the acquisition value has error, which is using the touch screen is a bit trickier, simple algorithm: some point after pressing the premise remain release, collecting seven data, and the data in ascending order, take the middle three data as valid data, and the average value as Next after the X, Y coordinates.
目前处理此问题主要通过软件算法实现,并且功能稳定的往往算法想法复杂,本程序采用简单的算法来
实现:当某一点按下后,在保持不放开的前提下,采集7个数据,并对数据进行升序排列,取中间3个数据
作为有效数据,并将平均值作为按下后的X,Y坐标。-Bus operation control TFT color LCD, to simulate SPI control touch screen display will press the point on a TFT 2.4 inch LCD. Therefore, it is possible to use this procedure to drawn on the screen pattern. Information search, found mainly achieved through software algorithms to deal with this problem, and stable function often complex algorithm ideas, the program uses the touch screen in each acquisition when the acquisition value has error, which is using the touch screen is a bit trickier, simple algorithm: some point after pressing the premise remain release, collecting seven data, and the data in ascending order, take the middle three data as valid data, and the average value as Next after the X, Y coordinates.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Touchscreen.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.