Hi,
I'm using a TS7300 board with lilliput lcd/touchscreen
(www.lilliput.cn). I was developing my graphical application on
nano-x(microwindows) and it worked fine, but as it become larger it
also become hard to handle events, so i decided to change to QT.
Now I don't know how to make a driver for the touchscreen...
I already made a driver to microwindows and I know the packet format
sent by the touchscreen controller, but I don't know how to put it
into QT (QTOpia version is 4.3.3, compiled to 2.4 debian kernel from TS).
I looked at tslib but i don't know exactly what to do.
What I know:
it's in: /dev/tkpanel0
the packet has 6 bytes:
0: dummy.
1: 1 0 0 0 0 0 0 S (where S indicates the touch status: 1 for touch
down and 0 for touch up)
2: 0 0 0 0 X10 X9 X8 X7
3: 0 X6 X5 X4 X3 X2 X1 X0 (where X are data to x coordinate)
4: 0 0 0 0 Y10 Y9 Y8 Y7
5: 0 Y6 Y5 Y4 Y3 Y2 Y1 Y0 (where Y are data to y coordinate)
As you see, it's 11 bit, so a 2048 resolution, and my screen 640x480.
please help.
thanks
Adriano
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|