TFT9481_8bit compile errors.

Post your requests and ideas for the mikroElektronika website & forums.
Post Reply
Author
Message
mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

TFT9481_8bit compile errors.

#1 Post by mikroSeven » 31 Jan 2022 18:07

Hi,

have connected an ILI9481 based TFT at my MEGA 2560.

I'm uisng 8-bit mode, but got compile-errors related to 16bit-mode.

Here my code:

main body:

program ILI9481_8bit;
// test TFT ILI9481

{ Declarations section }

begin
{ Main program }

TFT_Init_ILI9481_8bit(320, 480);
// TFT_Init_ILI9481_8bit_custom(320, 480); // _custom gives same errors

delay_ms(100);

while true do
begin
TFT_Fill_Screen(CL_BLACK);
delay_ms(1000);
TFT_Fill_Screen(CL_RED);
delay_ms(1000);
end;

end.

unit:

unit initILI9481_8bit;

// interfcae section

// TFT display connections
var TFT_DataPort : byte at PORTF;

var TFT_WR : sbit at PORTK3_bit;
var TFT_RD : sbit at PORTK2_bit;
var TFT_CS : sbit at PORTK5_bit;
var TFT_RS : sbit at PORTK4_bit;
var TFT_RST: sbit at PORTK6_bit;


var TFT_DataPort_Direction : byte at DDRF;

var TFT_WR_Direction : sbit at DDK3_bit;
var TFT_RD_Direction : sbit at DDK2_bit;
var TFT_CS_Direction : sbit at DDK5_bit;
var TFT_RS_Direction : sbit at DDK4_bit;
var TFT_RST_Direction: sbit at DDD6_bit;
// End of TFT display connections


implementation

end.






compiler results:
compiler 01.jpg
compiler 01.jpg (148.63 KiB) Viewed 1065 times

Also the file/unit _LibTFT_16bit_Defs; opens.


Thanks in advance! Marcel
To DIY or not to DIY

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: TFT9481_8bit compile errors.

#2 Post by mikroSeven » 01 Feb 2022 16:38

Wait a minute...

This reminds me of another topic:

viewtopic.php?f=76&t=70082



When I got results, I'll will post the results.

Kind regards.
To DIY or not to DIY

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: TFT9481_8bit compile errors.

#3 Post by mikroSeven » 02 Feb 2022 14:57

After deselecting 16bit library, the compiling went without errors!
My TFT became alive!

https://youtu.be/NxilDWpT7Rg
To DIY or not to DIY

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: TFT9481_8bit compile errors.

#4 Post by mikroSeven » 02 Feb 2022 17:28

So far , so gooed.

But when place code for a line, rectangle or text, the screen goes frozen...
To DIY or not to DIY

Post Reply

Return to “Website & Forums Wishlist”