Using touch panel when rotation TFT display

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
jordi
Posts: 6
Joined: 13 Aug 2012 21:48

Using touch panel when rotation TFT display

#1 Post by jordi » 10 Oct 2012 17:37

When I rotate the TFT display using TFT_Rotate_180(1); the touch panel doesn't work because it is upside-down. I have solved the problem swapping the hardware touch panel connections, but I would like to know if there is any way to solve it by software.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Using touch panel when rotation TFT display

#2 Post by filip » 11 Oct 2012 08:49

Hi,

You could use the following routine for the Touch Panel rotation :

Code: Select all

TP_TFT_Rotate_180(1);
Regards,
Filip.

jordi
Posts: 6
Joined: 13 Aug 2012 21:48

Re: Using touch panel when rotation TFT display

#3 Post by jordi » 11 Oct 2012 09:04

Thanks for your quick answer. I searched for this kind of function in MikroC help, but it is not documented.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Using touch panel when rotation TFT display

#4 Post by filip » 12 Oct 2012 10:06

Hi,

Yes, you are right, we will fix this.
I apologize for the inconvenience.

Regards,
Filip.

PIC007
Posts: 179
Joined: 28 Aug 2013 18:28

Re: Using touch panel when rotation TFT display

#5 Post by PIC007 » 15 Apr 2014 20:24

filip wrote:Hi,

Yes, you are right, we will fix this.
I apologize for the inconvenience.

Regards,
Filip.

Interesting Filip - this was in 2012 and we are now 2014 and this is still not fixed!

TP TFT library Help file still refers to void TP_TFT_Rotate(char) when it should be void TP_TFT_Rotate_180(char).

I wasted 30 mins on this today.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Using touch panel when rotation TFT display

#6 Post by filip » 16 Apr 2014 12:35

Hi,

This somehow slipped through our eyes, we have corrected this now, it will be ready for the next release.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”