编程触摸屏 [英] Programming a TouchScreen

查看:77
本文介绍了编程触摸屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




对于第三年的电子工程项目,我需要编写一个

触摸屏。我将不得不将屏幕,5线电阻式b / b $ b型号连接到ATMEL AVR 90s8535。我不知道从哪里开始。

是否有人知道我将如何设置分辨率,然后将

信号作为串行鼠标命令重新路由?


如果有人有任何经历,请告诉我,alex


alexdocherty at sympatico.ca

Hi,

For a 3rd year electronic engineering project i will need to program a
touch screen. I will have to interface the screen, a 5 wire resistive
model to an ATMEL AVR 90s8535. I have no idea where to begin. Does
anyone know how i will be able to set a resolution, then re-route the
signal as a serial mouse command?

If anyone has any expereince in this please let me know, alex

alexdocherty at sympatico.ca

推荐答案

2005年9月21日10:53:34 -0700,a doc < al ********** @ sympatico.ca>

写道:
On 21 Sep 2005 10:53:34 -0700, "a doc" <al**********@sympatico.ca>
wrote:


对于第三年的电子工程项目,我需要编写一个触摸屏。我将不得不将屏幕,5线电阻模型连接到ATMEL AVR 90s8535。我不知道从哪里开始。


不是你的教科书和你的班级工作让你知道在哪里开始?b $ b开始?无论如何,你已经发布了错误的新闻组。这个

新闻组处理有关标准C语言的问题。


我不知道正确的新闻组,但是因为你发布了<来自Google网上论坛的
,你没有理由找不到它。

是否有人知道我将如何设置分辨率,然后重新-route
信号是一个串行鼠标命令?

如果有人有任何经验,请告诉我,alex

alexdocherty at sympatico.ca
Hi,

For a 3rd year electronic engineering project i will need to program a
touch screen. I will have to interface the screen, a 5 wire resistive
model to an ATMEL AVR 90s8535. I have no idea where to begin.
Don''t your textbooks and your class work give you any idea where to
start? In any case, you''ve posted to the wrong newsgroup. This
newsgroup deals with questions about the standard C language.

I don''t know the proper newsgroup offhand, but since you''re posting
from Google Groups, you have no excuse for not being able to find one.
Does
anyone know how i will be able to set a resolution, then re-route the
signal as a serial mouse command?

If anyone has any expereince in this please let me know, alex

alexdocherty at sympatico.ca



-

Al Balmer

Balmer Consulting
再************************ @ att.net




" a doc" <人********** @ sympatico.ca>写了

"a doc" <al**********@sympatico.ca> wrote
对于第三年的电子工程项目,我需要编写一个触摸屏。我将不得不将屏幕,5线电阻模型连接到ATMEL AVR 90s8535。我不知道从哪里开始。
For a 3rd year electronic engineering project i will need to program a
touch screen. I will have to interface the screen, a 5 wire resistive
model to an ATMEL AVR 90s8535. I have no idea where to begin.



你需要从你拥有的东西开始。

例如,你有硬件,还是你必须建立你自己?

我也不知道AMTEL AVR 90s8535是什么?它是某种微处理器吗?


据推测,你的系统中有一个C编译器和处理器。在
a低级别,处理器通常通过内存映射端口与外围设备通信。


因此,开始的地方是让一些IO设备连接到你的处理器,

和执行IO的C程序 - 例如输入一个数字,递增它,然后输出它。

一旦你知道了C系统正在运行,接下来要做的就是让

触摸屏工作 - 所以你接受输入并产生某种输出。

最后阶段是得到C程序产生你想要的输出

通过高级逻辑指定输入。


You need to begin with what you have.
For instance do you have hardware, or do you have to build it yourself?
I also have no idea what an AMTEL AVR 90s8535 is? Is it some sort of
microprocessor?

Presumably you have a C compiler and processor somewhere in your system. At
a low level, processors usually talk to peripherals via memory-mapped ports.

So the place to start is to get some IO device hooked up to your processor,
and a C program performing IO - eg inputting a number, incrementing it, and
outputting it.
Once you know the C system is working, the next thing to do is to get the
touch screen working - so you accept input and produce some sort of output.
The final stage is to get the C program to produce the output you want for
specified input via high-level logic.


一个doc写于21/09/05 :
a doc wrote on 21/09/05 :
对于第三年的电子工程项目,我需要编写一个触摸屏。我将不得不将屏幕,5线电阻模型连接到ATMEL AVR 90s8535。我不知道从哪里开始。是否有人知道我将如何设置分辨率,然后将
信号重新路由为串行鼠标命令?

如果有任何人有任何疑问,请让我们我知道,alex
For a 3rd year electronic engineering project i will need to program a
touch screen. I will have to interface the screen, a 5 wire resistive
model to an ATMEL AVR 90s8535. I have no idea where to begin. Does
anyone know how i will be able to set a resolution, then re-route the
signal as a serial mouse command?

If anyone has any expereince in this please let me know, alex




这是一个C问题?


你有设计问题。获取有关硬件,

接口,流程图和时间的信息。


然后编写算法,最后将算法转换为

代码(C或其他)。


新闻:comp.arch.embedded可能对设计细节有所帮助。


-

Emmanuel

C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html

C库: http://www.dinkumware.com/refxc.html


" Mal nommer les choses c''est ajouter du malheur au

monde。" - Albert Camus。



How is this a C question ?

You have a design problem. Get information about the hardware, the
interfaces, the flowchart, the timings.

Then write the algorithms, and finally, translate the algorithms into
code (C or whatever).

news:comp.arch.embedded could be helpful for design details.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"Mal nommer les choses c''est ajouter du malheur au
monde." -- Albert Camus.


这篇关于编程触摸屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆