SkyFort Posted May 5 Report Share Posted May 5 (edited) Hi, all!!! Use RAW32.... To check the functionality of the touchscreen driver, I used the file \ugfx\demos\tools\touch_raw_readings. I previously implemented the necessary functions inside gmouse_lld_ADS7843_board.h by adding debugging output to the static GFXINLINE gU16 read_value(GMouse* m, gU16 port) procedure. In the debugger terminal I see that data is being read from the touchscreen controller and it is within the required limits (0-4096), but nothing is displayed on the device screen. I am attaching photos of the IDE screen and the device display. Where am I going wrong and what am I doing wrong? while(1) { pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); //!!!!never get out from this function gwinPrintf(ghc, "%u, %u z=%u b=0x%04x\n", pem->x, pem->y, pem->z, pem->buttons & ~GINPUT_MISSED_MOUSE_EVENT); // Always sleep a bit first to enable other events. We actually don't mind missing events. gfxSleepMilliseconds(100); } Edited May 5 by SkyFort Link to comment Share on other sites More sharing options...
inmarket Posted May 5 Report Share Posted May 5 I'll have a good look later, but you should atleast remove the gfxSleepMilliseconds call. There is no need for it as the geventEventWait call will do the waiting for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now