Correct library for my screen

HX8357B was on my list of possible controllers in #2.

I assumed that HX8357B was no longer available. But since it is printed on your pcb that seems a pretty good hint !!

Not sure if I'm doing it wrong, or if I'm not looking for the right differences, but all three constructors perform the exact same loop of flipping and changing of colour? Does that mean anything?
I had to change the one part to make the background black, and then tried the three different constructors.

Edit the equivalent file on your PC.
C:\Users\David Prentice\Documents\Arduino\libraries\UTFT\tft_drivers\ili9481\initlcd.h

Add this pair of statements:


    LCD_Write_COM(0xE9); //HX8357B SETPANEL
    LCD_Write_DATA(0x08); //HX8357B SS_PANEL

I think that a genuine ILI9481 will ignore the 0xE9 command. And a HX8357B will accept it. Please report back

Personally, I think it is crazy to use UTFT when there is an excellent TFT_HX8357 library available from Bodmer. TFT_HX8357 has specific support for HX8357B, HX8357C, ILI9481, ILI9486.

MCUFRIEND_kbv also supports those controllers but is harder to configure.

David.

Hi David,

Sorry for the slow reply, had a family emergency to rush off to on Friday.

Thank you for the info. I've added the two lines to the file, but I'm not sure what to look for when running my sketch? I ran the usual sketch with the ILI9481 driver, but the font is still flipped and upside down.

As for the other library. I'll look at it sometime, but for now I have a large part of my sketch with the myGLCD command, and will be a bit of a mission to change it.

Thanks

This topic was automatically closed after 54 days. New replies are no longer allowed.