Little doubt - "User code" in Visual TFT

General discussion on Visual TFT Software.
Post Reply
Author
Message
HSamuel
Posts: 8
Joined: 31 Oct 2012 21:02

Little doubt - "User code" in Visual TFT

#1 Post by HSamuel » 30 Mar 2015 06:36

Good day.

I am doing a project using a TFT screen but am having difficulties. I generated the code with Visual TFT, however, the file "name_events_code" write my routines in space "User Code" but do not know how to call them. If I place my routine in the "main" after "Check_TP ()", my routine works but screen buttons do not work! Are frozen.

One of the routines is to read an analog channel and show the main screen constantly read value by changing a label. What is the correct way to be done? I'm programming with mikroC.

Thank you!!!

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Little doubt - "User code" in Visual TFT

#2 Post by marina.petrovic » 30 Mar 2015 09:37

Hi,

Please, take a look at "Creating first project in Visual TFT" file, there you can find some very useful information which can help you:
http://www.mikroe.com/downloads/get/152 ... p_v350.pdf

Basically, you need to first create "Event" in Visual TFT for desired component:
Visual TFT: Components -> Events (double click on empty field near desired event action) and proper routine will be automatically generated in User Code.
Then you can write your own code inside this routine.

Also, you can take a look at existing examples in Visual TFT.

Best regards,
Marina

HSamuel
Posts: 8
Joined: 31 Oct 2012 21:02

Re: Little doubt - "User code" in Visual TFT

#3 Post by HSamuel » 30 Mar 2015 13:33

Hi,

Thank you for the quick response Marina, but would like the label was updated with the analog value without having to click on any object, automatically updating this value without any specific event. Is this possible?

Thank U!

Megahurts
Posts: 900
Joined: 01 Oct 2009 22:48
Location: Rocky Mountains, USA.

Re: Little doubt - "User code" in Visual TFT

#4 Post by Megahurts » 30 Mar 2015 15:05

Hi ,

Welcome to the V-TFT forums. Hope you find them useful too.

Please look at this thread about V-TFT beginners tutorial projects:
http://www.mikroe.com/forum/viewtopic.php?f=160&t=56760

There are links to pdf tutorials and source code on LibStock you should read that shows how to do what you want to do right now,
and more stuff you will want to be doing with V-TFT.

Hope you find it helpful, Robert.
HW: easyPIC5|PICFlash2|easyBT|smartGSM|easyGSM|PICPLC16|mmWorkStation|FT800 Eve|PIC Clicker/2|
MMBs:PIC18F,PIC33EP,PIC32|CLICKs:DAC,ADC,GPS L10,Thermo,8x8B LED,Stepper,W/B OLED,9DOF,GPS3,tRF,Hall I|

SW: mP for PIC|mB for PIC-dsPIC-PIC32|Visual-TFT|

HSamuel
Posts: 8
Joined: 31 Oct 2012 21:02

Re: Little doubt - "User code" in Visual TFT

#5 Post by HSamuel » 02 Apr 2015 15:36

Thanks for the replies. Problem solved! It's simpler than I thought.

sisko
Posts: 63
Joined: 02 Jun 2005 09:48
Contact:

Re: Little doubt - "User code" in Visual TFT

#6 Post by sisko » 01 Jul 2015 12:19

And how? Let us take part of it ... please.
Regards, Gunther

Post Reply

Return to “Visual TFT General”