This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ipaq touchscreen
- From: Tom Coremans <tom dot coremans at acunia dot com>
- To: Gary Thomas <gthomas at redhat dot com>
- Cc: eCos users <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 18 Mar 2002 14:57:43 +0100
- Subject: Re: [ECOS] ipaq touchscreen
- Organization: Acunia
- References: <3C95EBA3.E87CD5CB@acunia.com> <1016458749.8954.16.camel@hermes>
Gary Thomas wrote:
> On Mon, 2002-03-18 at 06:29, Tom Coremans wrote:
> > Hi,
> >
> > I am trying to get the touchscreen up and running for the ipaq.
> >
> > When I use the function ts_get_event I get strange coordinates: they
> > range from (63,1023) to (63,51) and from (957,1023) to (957,51).
> >
> > Shouldn`t they be somehing like (0,0) and (320,240) ?
>
> Did you calibrate it first? The touch screen driver is self calibrating
> and you need to touch all four corners at least once before relying on
> any data to be accurate.
>
Thanks for replying but it doesn`t work yet.
When I start my program and poll the touchscreen with ts_get_event the
first thing I do is touch the four corners but the result is still the
same.
When do I have to do the calibration of the touchscreen? Is there a
function I have to call?
Thanks,
Tom
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss