nanogui: Setting up TouchScreen for AT91SAM9261-EK
Subject:
Re: [nanogui] Setting up TouchScreen for AT91SAM9261-EK
From:
"Uwe Klatt" ####@####.####
Date:
24 Jan 2007 06:50:43 +0000
Message-Id: <001c01c73f83$e34c90e0$081710ac@arnstein.miwe.de>
Hello
> Wrong number of bytes 0 read from touch panel (expected 6)
> struct ts_event {
> short pressure;
> short x;
> short y;
> };
You schould find out the correct device file for your touch and the correct
amount of bytes for every touch event.
Try "cat /dev/touch > output" and check the file with hex editor.
Now you should be able to see, how many bytes per event are send..
Here is a example of my touch device...
#define TS_DEVICE_FILE "/dev/misc/tpanel"
struct ts_event {
long dummy;
short x;
short dummy2;
short y;
short pressure;
};
Bye
Uwe