文件名称:1
- 所属分类:
- 人工智能/神经网络/遗传算法
- 资源属性:
- [PDF]
- 上传时间:
- 2017-02-23
- 文件大小:
- 11.87mb
- 下载次数:
- 0次
- 提 供 者:
- 申**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1、实现SPI驱动TSC2046,读取X,Y触摸坐标
2、触摸坐标和LCD坐标的对应关系可由矩阵平移、旋转、缩放三者来表示
XL XT*A+XT*B+C
YL YT*D+YT*E+F
采用五点校正算法,计算出参数A,B,C,D,E,F
因为参数多为小数不易存放,所以乘以一个参数作为整数存放。
3、每次读取触摸按下的坐标时,读TSC2046的是触摸坐标,
而需要的是LCD坐标,所以把触摸坐标和上述参数代入上面等式即可获得-1, to achieve SPI drive TSC2046, read X, Y touch coordinates
2, touch coordinates and LCD coordinates of the corresponding relationship can be matrix translation, rotation, zoom to show that the three
XL XT* A+ XT* B+ C
YL YT* D+ YT* E+ F
The parameters A, B, C, D, E, F are calculated using the five-point correction algorithm
Because the parameters are mostly decimal not easy to store, so multiplied by a parameter stored as an integer.
3, each time you read the touch press the coordinates, read TSC2046 is the touch coordinates,
And the need for LCD coordinates, so the touch coordinates and the above parameters into the above equation can be obtained
2、触摸坐标和LCD坐标的对应关系可由矩阵平移、旋转、缩放三者来表示
XL XT*A+XT*B+C
YL YT*D+YT*E+F
采用五点校正算法,计算出参数A,B,C,D,E,F
因为参数多为小数不易存放,所以乘以一个参数作为整数存放。
3、每次读取触摸按下的坐标时,读TSC2046的是触摸坐标,
而需要的是LCD坐标,所以把触摸坐标和上述参数代入上面等式即可获得-1, to achieve SPI drive TSC2046, read X, Y touch coordinates
2, touch coordinates and LCD coordinates of the corresponding relationship can be matrix translation, rotation, zoom to show that the three
XL XT* A+ XT* B+ C
YL YT* D+ YT* E+ F
The parameters A, B, C, D, E, F are calculated using the five-point correction algorithm
Because the parameters are mostly decimal not easy to store, so multiplied by a parameter stored as an integer.
3, each time you read the touch press the coordinates, read TSC2046 is the touch coordinates,
And the need for LCD coordinates, so the touch coordinates and the above parameters into the above equation can be obtained
(系统自动生成,下载前可以参看下载内容)
下载文件列表
瑙︽懜鏍″噯绠楁硶
..................\012112iht554q3yf80yix3.rar
..................\013624ssy3s3fxzyyyxi38.pdf
..................\111.pdf
..................\1221.pdf
..................\5鐐规牎鍑?pdf
..................\stm8s_touch_sensing_package_v1.1.0.zip
..................\甯︽牎鍑嗗拰娓呭睆鐨勬樉绀?rar
..................\鏂板缓鏂囨湰鏂囨。.txt
..................\瑙︽懜灞忕畻娉?pdf