SkyFort Posted May 5, 2024 Report Posted May 5, 2024 (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, 2024 by SkyFort
inmarket Posted May 5, 2024 Report Posted May 5, 2024 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.
JamesKar Posted 50 minutes ago Report Posted 50 minutes ago Мы создаем вебсайты, которые привлекают клиентов и увеличивают продажи. Почему нужно выбрать нас? Качественный дизайн, который привлекает взгляд Адаптация под все устройства (ПК, смартфоны, планшеты) SEO-оптимизация для продвижения в поисковых системах Скорость работы — никаких медленных страниц Приветственное предложение: Первым 6 клиентам — скидка 13% на разработку сайта! Готовы обсудить проект? Напишите нам! [url=https://yakneslidrobiti.xyz/]Блог[/url]
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