Hi My name is Vedat Baloğlu
I do not my tft library pleas help me
I do not my tft library
I do not my tft library
- Attachments
-
- Görüntü 4.png (7.35 KiB) Viewed 1549 times
-
- Görüntü 3.png (14.46 KiB) Viewed 1549 times
-
- Görüntü 2.png (8.08 KiB) Viewed 1549 times
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: I do not my tft library
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
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
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.
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 (15.28 KiB) Viewed 1465 times
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: I do not my tft library
Hi,
Please, instead of:
try to use:
Best regards,
Marina
Please, instead of:
Code: Select all
TFT_16bit_DataPort_Direction_Lo as byte at TRISB
TFT_16bit_DataPort_Direction_Hi as byte at TRISD
Code: Select all
TFT_16bit_DataPort_Lo_Direction as byte at TRISB
TFT_16bit_DataPort_Hi_Direction as byte at TRISD
Marina