Draw a line with commands

General discussion on Visual TFT Software.
Post Reply
Author
Message
MedBoy
Posts: 137
Joined: 11 Jul 2012 11:45

Draw a line with commands

#1 Post by MedBoy » 13 Jan 2022 14:31

Hi everyone.
I'm using dsPIC mcu, FT810 with VisualTFT. I want to draw a line or circle with commands without clearing the current screen. When I execute the commands below, the current screen (buttons, all objects, etc..) is cleared and draws lines and circles.

Code: Select all

FT810_Canvas_Pen(5,0x0000,255);
FT810_Screen_BeginUpdate();
FT810_Screen_Circle(200,200,50);
FT810_Screen_Line(350,400,700,400);
FT810_Screen_EndUpdate();
But I want to draw lines and circles without deleting all objects on the screen, is this possible?

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

Re: Draw a line with commands

#2 Post by filip » 17 Jan 2022 10:15

Hi,

You will have to redraw the entire screen with added line/circle, the FT800 works like that - the GRAM is populated with data and then this is drawn to the display.

Regards,
Filip.

MedBoy
Posts: 137
Joined: 11 Jul 2012 11:45

Re: Draw a line with commands

#3 Post by MedBoy » 19 Jan 2022 11:32

Thanks Filip. I will try that your said. I added a DrawScreen command after my wrote codes.
I have one more question to you; I define an event as "OnPress" with click sound to a button. This button mission is to increase a variable. OnPress event is playing click sound every increase. can it play click sound just first press?
filip wrote:
17 Jan 2022 10:15
Hi,

You will have to redraw the entire screen with added line/circle, the FT800 works like that - the GRAM is populated with data and then this is drawn to the display.

Regards,
Filip.

Post Reply

Return to “Visual TFT General”