Go Down

Topic: Selecting the suitable library  (Read 1 time) previous topic - next topic

senakahks

Dear All,

I purchased a display and found following information written on the board.

www.mcufriend.com
3.5 TFT LCD for Arduino Uno

Images:

https://www.dropbox.com/s/wo8zituhalj27k1/IMG_2.jpg?dl=0
https://www.dropbox.com/s/84pq35oxd6m6hgl/IMG_1.jpg?dl=0

What is the library I should use for above display?

Senaka




david_prentice

#1
Oct 23, 2017, 08:00 pm Last Edit: Oct 24, 2017, 07:22 am by david_prentice
TFT_HX8357 or UTFT.   (MCUFRIEND_kbv needs to be configured as a SPECIAL)

It is not possible to read the controller ID.
If there is no sticky label,   you just have to guess which controller is mounted.

David.

Edit.   My apologies.   I misread your message.

bodmer

Only the Arduino Due library version  (TFT_HX8357_Due) supports 8 bit displays.

The TFT_HX8357 library only works with the Mega and is for displays with a 16 bit interface.

As you have an 8 bit UNO style board you might find other libraries, I would expect MCUFRIEND_kbv might work, but as David is suggesting other libraries perhaps this is not a display supported...
Formerly Rowboteer (now a broken user profile!)

david_prentice

Oops.   I made my original reply from a Tablet.   i.e. without looking at your photos.

It is a regular Mcufriend Uno Shield.

Install MCUFRIEND_kbv library from the Library Manager.
I am 99.9% confident that MCUFRIEND_kbv will support it.

If not,  please say so.  And I will add support.

David.

senakahks

Hi david_prentice,

Thank you! it works! but the problem is the output is mirrored (colors are working fine). I am using MCUFRIEND_kbv-2.9.3.zip.  When running LCD_ID_readreg, nothing is displayed and the screen is blank. Also, I am using a MacBook and the web-based editor.

Appreciate your support.

david_prentice

Please follow the advice in #3.   God invented the Library Manager and it is good     Use it.

The current library is v2.9.7
LCD_ID_readreg  will report to the Serial Terminal.  9600 baud.

It is always worth showing the Serial Terminal with any example program.   There is often useful information.    9600 is the most common baud.   Some (other) libraries use 115200 baud.
You can copy-paste directly from the Serial Terminal to your messages here.

David.

senakahks

Hi all,

All problems were solved by adding the latest driver v2.9.7.

Thanks,

Senaka

david_prentice

How or why did you use v2.9.3 ?

Which controller do you have in your display?
The Serial Terminal will report the ID.

David.

Go Up