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!!!
Little doubt - "User code" in Visual TFT
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: Little doubt - "User code" in Visual TFT
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
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
Re: Little doubt - "User code" in Visual TFT
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!
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!
Re: Little doubt - "User code" in Visual TFT
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.
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|
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|
Re: Little doubt - "User code" in Visual TFT
Thanks for the replies. Problem solved! It's simpler than I thought.
Re: Little doubt - "User code" in Visual TFT
And how? Let us take part of it ... please.
Regards, Gunther