/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Touchscreen and drawing

Username:     
Password:     
             

Forum

# 1   2009-07-14 09:18:06 Touchscreen and drawing

micronpn
Member
From: Italy
Registered: 2007-11-20
Posts: 13
Website

Touchscreen and drawing

I made a simple test:
inside Application_Handler I put these lines of code:

            u16 uStylusPos = TOUCHSCR_GetPos();
            u8  bPosX = (u8)uStylusPos;
            u8  bPosY = (u8)(uStylusPos>>8);
            LCD_DrawPixel(bPosX, bPosY, RGB_BLACK);

so when I touch the screen with my Nintendo DS stylus I see not a single point (I was quite sure that I couldn't obtain a single point) but a cloud of points. I try to calibrate the touch screen but nothing change. Before to implenet some sort of filtering I would know if this is the common behaviour or if I am missing something.

Offline

 

Board footer