Visual TFT for PIC24

Post Reply
Author
Message
pic32user
Posts: 23
Joined: 23 Apr 2013 13:58

Visual TFT for PIC24

#1 Post by pic32user » 07 Jan 2019 17:45

Hello,

I made a demo program and have set up a button that I what to update the caption on. The screen comes up fine but the when I use Drawbutton to update it doesn't. I'm using a PIC24EP206GP processor.

Here is my code........

InitVTFTStack();

while (1) {

ProcessVTFTStack();


gLED = 1;
Delay_ms(1000);
IntToStr(iRPM, sRPM);
dRPM.Caption = sRPM;
DrawButton(&dRPM);
Delay_ms(1);

gLED = 0;
Delay_ms(1000);
iRPM++;
}

Thanks in advance.
Mike
Attachments
DEMO.zip
(521.93 KiB) Downloaded 98 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Visual TFT for PIC24

#2 Post by stefan.filipovic » 09 Jan 2019 12:53

Hi Mike,

I suggest you open an example located in the following path:
C:\Users\Public\Documents\Mikroelektronika\mikroC PRO for dsPIC\Examples\VTFT\mikromedia for PIC24EP\controls_demonstration

There you will see how to update button's Text Align, the same principle could be used with button's Caption.
In the file "controls_demonstation_events_code.c" look at the function RadioButton1OnClick.

Kind regards,
Stefan Filipović

Post Reply

Return to “dsPIC Compilers General”