nanogui: Setting up TouchScreen for AT91SAM9261-EK


Previous by date: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Next by date: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Previous in thread: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Next in thread: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu

Subject: Re: [nanogui] Setting up TouchScreen for AT91SAM9261-EK
From: "Uwe Klatt" ####@####.####
Date: 25 Jan 2007 15:23:05 +0000
Message-Id: <003b01c74094$a3966b30$081710ac@arnstein.miwe.de>

Kelvin Xu wrote:

> However, i am not too sure how Nano-X input drivers work.
> There are 2 possible values for the pressure variable after analysing
> my touchscreen output.
> 1) One of the byte shows a value of 7500 on pen-down and 0 on pen-up.
> => This   subsequent pen-down and pen-up event does not send a
> "Click" event to Nano-X as the programs do not respond
> 2) The other shows an almost random values on pen-up and pen-down
> varying from 100-9000 and i could not figure out a pattern. With
> this, Nano-X interpret as a continous pen-down.
> Could you advice on what could be a possible problem?

PD_Read() in /src/drivers/mou_touchscreen.c is used for reading touch-data.
You can add a few EPRINTFs for debugging.

The line "*pb = (event.pressure > 50) ? MWBUTTON_L : 0;" decides when a 
"Pen-Down" is measured.
Try if a value of 5000 instead of 50 helps!

Bye
Uwe 


Previous by date: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Next by date: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Previous in thread: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Next in thread: 25 Jan 2007 15:23:05 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu


Powered by ezmlm-browse 0.20.