get coordinate when tap on the lcd

elenor
Hi 
how can i get the coordinate when i tap on the screen ? 
I'm using Ucos and the touch feature not working  . i want to get the
coordinate of the screen when i tap on it . 
can anybody help me ?

davef
Google search for <evtest>

Juergen Beisert
You need a driver for your OS to handle the S3C2440's internal ADCs to do
the job. Read the processor's manual and/or take a look into the Linux
kernel sources: "drivers/input/touchscreen/s3c2410_ts.c"

AnatoliyBesplemennov
It's easy to do:
Example from STARTOS pacckage:
.............................................

    if(Pen_Buffer_Address[0])      // Was Pen pressed ?
    {  Buzz(5000, 20);
    
      
      Pen_Buffer_Address[0]=0;    //  Clear Flag & wait next press
      x=Pen_Buffer_Address[1];
      y=Pen_Buffer_Address[2];
      Dec2Asc(x, (char *)txt);
      Set_Font(0,0xFFFF,0x5000);

      Print_Buffer(42, 10, (char *)txt);
      Dec2Asc(y, (char *)txt);
      Print_Buffer(110, 10, (char *)txt);


    }
............................................

NO Drivers needed!

Nilson
Hello elenor!

The example of 2440test Mini2440 provides a driver to identify the touch
screen. However, the coordinates provided by the example are not compatible
with the screen, thus requiring an algorithm to calibrate the screen, as
well as the routine ts_calibrate for Linux. Did I make this adjustment
without OS, following the example 2440test and using some parts of the
algorithm ts_calibrate ts_lib library.
If anybody is interested in the routine to calibrate the touch screen
applications without OS, please send me an email I can provide the code to
Keil or 4 Metrowerks CodeWarrior.

SDI also have routines for reading and writing blocks of the SD card, but
have not found a good FAT library to work, if someone can help me ...

nilsao@gmail.com

kuriel
hi Nilson,
perhaps you could try my library for FAT32 driver but only for FAT32 file
system and not FAT16/12, it support long filename if that's what you're
looking for, i've tested it on my mini2440 and it works find for
read/write, the file deletion still has problem though, be sure to backup
your SD card content.
tutorial:
http://my.opera.com/kuriel/blog/2011/04/29/elvish-fat-library
download:
https://github.com/kuriel07/eFAT