nanogui: Setting up TouchScreen for AT91SAM9261-EK
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