Different display control IC

I am doing this project but I bought a display with IC. In the project, the IC is HX8357B, and mine is ILI9486. I dont know how to make the changes. The photo is showing some problem on using different IC.

Please help, as this project is very important to me. Thanks a lot.

the problem is solved. The problem now is how to solve drawBMP() function?

Surely you set the required information in User_Setup.h

Verify that the regular Bodmer examples show correct colours and directions.

If you have a problem. Write it down on paper. Then carefully compose your message.

If you want text in your message, copy-paste errors, program statements, ... Attach sketch or massive text file.

David.

the problems are still there, thanks a lot. I will be back on tmr

Just direct copy the information to the Arduino IDE, and the error happen below:

Arduino: 1.8.4 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from C:\Users\sls90_000\Desktop\FTP\FTP.ino:3:0:

C:\Users\sls90_000\Documents\Arduino\libraries\TFT_HX8357-master/TFT_HX8357.h:124:0: warning: "HX8357B" redefined

define HX8357B 0xB

^

In file included from C:\Users\sls90_000\Documents\Arduino\libraries\TFT_HX8357-master/TFT_HX8357.h:19:0,

from C:\Users\sls90_000\Desktop\FTP\FTP.ino:3:

C:\Users\sls90_000\Documents\Arduino\libraries\TFT_HX8357-master/User_Setup.h:13:0: note: this is the location of the previous definition

define HX8357B

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino:37:0: warning: "PINK" redefined

define PINK 0xF81F

^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom2560.h:38:0,

from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:174,

from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,

from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,

from sketch\FTP.ino.cpp:1:

c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iomxx0_1.h:1149:0: note: this is the location of the previous definition

define PINK _SFR_MEM8(0x106)

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino: In function 'void lcd_setup()':

FTP:225: error: 'drawBMP' was not declared in this scope

drawBMP("untitled.bmp", 90, 20, BU_BMP); //Change untitled to any bitmap image name you wish to use

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino: In function 'void wifi_setup()':

C:\Users\sls90_000\Desktop\FTP\FTP.ino:299:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if(Serial2.find("CONNECTED"))

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino:314:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if(Serial2.find("CONNECTED"))

^

exit status 1 'drawBMP' was not declared in this scope

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Problem solved by following link: https://forum.arduino.cc/index.php?topic=374670.0

Build options changed, rebuilding all C:\Users\sls90_000\Desktop\FTP\FTP.ino:37:0: warning: "PINK" redefined

define PINK 0xF81F

^

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom2560.h:38:0,

from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:174,

from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,

from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,

from sketch\FTP.ino.cpp:1:

c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iomxx0_1.h:1149:0: note: this is the location of the previous definition

define PINK _SFR_MEM8(0x106)

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino: In function 'void lcd_setup()':

C:\Users\sls90_000\Desktop\FTP\FTP.ino:225:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

drawBMP("untitled.bmp", 90, 20, BU_BMP); //Change untitled to any bitmap image name you wish to use

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino: In function 'void wifi_setup()':

C:\Users\sls90_000\Desktop\FTP\FTP.ino:299:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if(Serial2.find("CONNECTED"))

^

C:\Users\sls90_000\Desktop\FTP\FTP.ino:314:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if(Serial2.find("CONNECTED"))

^

C:\Users\sls90_000\Desktop\FTP\bitmap_functions.ino: In function 'void drawRAW(char*, int16_t, int16_t, int16_t, int16_t)':

C:\Users\sls90_000\Desktop\FTP\bitmap_functions.ino:24:40: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

if ((rawFile = SD.open(filename)) == NULL) {

^

C:\Users\sls90_000\Desktop\FTP\bitmap_functions.ino: In function 'void drawBMP(char*, int, int, boolean)':

C:\Users\sls90_000\Desktop\FTP\bitmap_functions.ino:91:40: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

if ((bmpFile = SD.open(filename)) == NULL) {

^

Sketch uses 48508 bytes (19%) of program storage space. Maximum is 253952 bytes. Global variables use 2020 bytes (24%) of dynamic memory, leaving 6172 bytes for local variables. Maximum is 8192 bytes.

david_prentice: Surely you set the required information in User_Setup.h

Verify that the regular Bodmer examples show correct colours and directions.

If you have a problem. Write it down on paper. Then carefully compose your message.

If you want text in your message, copy-paste errors, program statements, ... Attach sketch or massive text file.

David.

THANKS a lot, just missed your message