Hello Paul Hmmm, you are right, it should be part of the calibration (userland). As Dmtry says, the output from the chip should be from 96-4000. I have fixed the max values to that.
The previous code was done to emulate an old privative app that uses an elo touchscreen. I managed to reverse engineer the code and found the 10 bytes protocol it was using. It also uses a privative library to talk with the touchscreen. Digging in the kernel, I found more of the protocol specification, and digging a little bit more in the internet I have found even more information. Please take a look to the last patch and tell me what do you think Best regards and thanks for your comments. On Mon, Mar 29, 2010 at 17:57, Paul Brook <p...@codesourcery.com> wrote: >> New char device emulating an Elo serial touchpad. >> >> TODO: The output of the touchpad should be in the range of the >> resolution. But I don't know a clean way to get the screen resolution. >> Any help will be very wellcomed > > Are you sure? I don't see how real hardware would be able to do that. > > Paul > -- Ricardo Ribalda http://www.eps.uam.es/~rribalda/