Page 1 of 1
I do not my tft library
Posted: 05 Aug 2013 02:13
by vedat_bal
Hi My name is Vedat Baloğlu
I do not my tft library pleas help me
Re: I do not my tft library
Posted: 06 Aug 2013 11:43
by marina.petrovic
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
Re: I do not my tft library
Posted: 06 Aug 2013 20:58
by vedat_bal
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.
Re: I do not my tft library
Posted: 19 Aug 2013 10:10
by marina.petrovic
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