/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Touchscreen improvement for Drummer application

Username:     
Password:     
             

Forum
  • Index
  •  » Comments
  •  » Touchscreen improvement for Drummer application

# 1   2010-06-21 10:32:39 Touchscreen improvement for Drummer application

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Touchscreen improvement for Drummer application

Hi,

The touchscreen resolution has been improved with CircleOS v3.82. So the Drummer application is now usable.
The only things to do is to modify the file "application.c" in order to remove corrrection constants, and fix a little bug :

Old code :       

Code:

 
        x = ((int) x*82/100);
        y = ((int) y*96/100);
    
        u16 gx = (x - xp-1)/xs;
        u16 gy = 7-(y - (yp-1))/ys;

New code :

Code:

        u16 gx = ((x - xp-1)/xs ) - 1;
        u16 gy = (7-(y - (yp-1))/ys) - 1;

Offline

 

  • Index
  •  » Comments
  •  » Touchscreen improvement for Drummer application

Board footer