I do not my tft library

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
vedat_bal
Posts: 2
Joined: 14 Apr 2011 12:34

I do not my tft library

#1 Post by vedat_bal » 05 Aug 2013 02:13

Hi My name is Vedat Baloğlu

I do not my tft library pleas help me
Attachments
Görüntü 4.png
Görüntü 4.png (7.35 KiB) Viewed 1487 times
Görüntü 3.png
Görüntü 3.png (14.46 KiB) Viewed 1487 times
Görüntü 2.png
Görüntü 2.png (8.08 KiB) Viewed 1487 times

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

Re: I do not my tft library

#2 Post by marina.petrovic » 06 Aug 2013 11:43

Hi,

Please, can you tell me which microcontroller you selected in your mikroBasic PRO for PIC, where the TFT Library are missing?

Some microcontrollers doesn't support some of in-built libraries.
For example, in TFT Display Library there is a note: Library works with PIC18 family only.

Best regards,
Marina

vedat_bal
Posts: 2
Joined: 14 Apr 2011 12:34

Re: I do not my tft library

#3 Post by vedat_bal » 06 Aug 2013 20:58

thank
I solved this problem

but I get an error message

ı use 18f4550 and 18f2550 mcu

unresolved extern error message


my codes

program tft_1

dim TFT_16bit_DataPort_Lo as byte at LATB
TFT_16bit_DataPort_Hi as byte at LATD
TFT_16bit_WR as sbit at RA0_bit
TFT_16bit_RD as sbit at RA1_bit
TFT_16bit_CS as sbit at RA2_bit
TFT_16bit_RS as sbit at RA3_bit
TFT_16bit_RST as sbit at RA4_bit

TFT_16bit_DataPort_Direction_Lo as byte at TRISB
TFT_16bit_DataPort_Direction_Hi as byte at TRISD
TFT_16bit_WR_Direction as sbit at TRISA0_bit
TFT_16bit_RD_Direction as sbit at TRISA1_bit
TFT_16bit_CS_Direction as sbit at TRISA2_bit
TFT_16bit_RS_Direction as sbit at TRISA3_bit
TFT_16bit_RST_Direction as sbit at TRISA4_bit

main:
ADCON1 = 0x0F ' Configure all ports with analog function as digital
CMCON = 7 ' Disable comparators

trisa=0
trisb=0
trisc=0
porta=0
portb=0
portc=0


TFT_Init_HX8352A(240,320)

while 1

TFT_Fill_Screen(CL_YELLOW)

wend

end.
Attachments
Görüntü 3.png
Görüntü 3.png (15.28 KiB) Viewed 1403 times

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

Re: I do not my tft library

#4 Post by marina.petrovic » 19 Aug 2013 10:10

Hi,

Please, instead of:

Code: Select all

TFT_16bit_DataPort_Direction_Lo as byte at TRISB
TFT_16bit_DataPort_Direction_Hi as byte at TRISD
try to use:

Code: Select all

TFT_16bit_DataPort_Lo_Direction as byte at TRISB
TFT_16bit_DataPort_Hi_Direction as byte at TRISD
Best regards,
Marina

Post Reply

Return to “mikroBasic PRO for PIC General”