Touch Screen development
From: Bob Knier (bubbler_at_execpc.com)
Date: 10/25/04
- Next message: Kevin Lamonte: "Re: Urgent: usbserial driver problems with GPS card, where to find help?"
- Previous message: Jason Curl: "Re: ramdisk: shared executables hang"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Oct 2004 10:26:01 -0700
I'm developing a touch driver for the 3M SC801 USB 8-wire touch
controller. I have written 2 drivers. The first calibrates the
controller (the results are saved in flash on the controller). The
second driver is a USB input driver.
I'm having limited sucess. It appears as thought the driver is not
linearized with the screen. Typically the controller responds with a
position between 0 and 1023 for both X and Y. I have been able to
scale this to the screen resolution within the driver (in my case 800
x 600).
The driver initializes the input device (while probing the device):
touch->input.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
touch->input.absbit[0] = BIT(ABS_X) | BIT(ABS_Y);
touch->input.keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH);
touch->input.absmin[ABS_X] = 0;
touch->input.absmax[ABS_X] = 800;
touch->input.absfuzz[ABS_X] = 0;
touch->input.absflat[ABS_X] = 0
touch->input.absmin[ABS_Y] = 0;
touch->input.absmax[ABS_Y] = 600;
touch->input.absfuzz[ABS_Y] = 0;
touch->input.absflat[ABS_Y] = 0
Is there any additional information on these paramters (absmin,
absmax, absfuzz, etc)? Is there anything else necessary to linearlize
the touch display?
Thanks in advance!
Bob
- Next message: Kevin Lamonte: "Re: Urgent: usbserial driver problems with GPS card, where to find help?"
- Previous message: Jason Curl: "Re: ramdisk: shared executables hang"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|