Hope some of you can help
Know there are a lot of threads about getting various TFT to work with Arduino. But have tried a lot now, and it still does not work.
ISSUE: Have everything working on UNO, but not DUE.
I have a Kuman TFTLCD (K60) shield (Amazon Kuman TFT), which should have an ILI9341 driver. I have tried some modded Adafruit libs on my UNO, and it works great.
But I would like to use it on my DUE instead. Have found the libs from marekburiak (marekburiak DUE libs) and trying to use HW SPI through the DUE 6 PIN header (SPI), but screen is always white.
The TFTLCD I have looks like this on the back:
I am not sure on where to connect TFT_CS, TFT_CD etc. Think I have the MOSI, MISO correct on SD_DO and SD_DI etc.
Would really like if somebody would help, with where to connect display pins to DUE pins, or with other things i have overseen. E.g. that the voltage levels does not match etc.
Thanks
It looks like a regular Blue 2.8" Mcufriend UNO Shield.
It should work with MCUFRIEND_kbv library on Uno, Mega, Leo, Zero, Due, Teensy3.2, ...
LCD_ID_readreg.ino sketch will identify the controller.
David.
Yes. I came across some of your other replies earlier today and tried the LCD_ID_readreg.ino on my UNO. In the ILI9341 print out line, it said something like 00 00 93 41. While other were zero or did not make sense. On my UNO it also works with 0x9341 identifier. So i guess ILI9341 is correct.
When you write it works, do you mean that it can plug the shield directly in, without using wire for rewiring, or do you mean that voltage leves are matching.
Thanks for you quick response
I mean that you just plug the Shield into the Due. (or any Arduino with shield headers)
Every male pin should mate naturally with a female socket.
You do not need any extra wires.
David.
Result from LCD_ID_readreg.ino:
reg(0x0000) 00 00 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00 Manufacturer ID
reg(0x0009) 00 00 61 00 00 Status Register
reg(0x000A) 00 08 Get Powsr Mode
reg(0x000C) 00 06 Get Pixel Format
reg(0x0061) 00 00 RDID1 HX8347-G
reg(0x0062) 00 00 RDID2 HX8347-G
reg(0x0063) 00 00 RDID3 HX8347-G
reg(0x0064) 00 00 RDID1 HX8347-A
reg(0x0065) 00 00 RDID2 HX8347-A
reg(0x0066) 00 00 RDID3 HX8347-A
reg(0x0067) 00 00 RDID Himax HX8347-A
reg(0x0070) 00 00 Panel Himax HX8347-A
reg(0x00A1) 00 00 00 00 00 RD_DDB SSD1963
reg(0x00B0) 00 00 RGB Interface Signal Control
reg(0x00B4) 00 02 Inversion Control
reg(0x00B6) 00 0A 82 27 04 Display Control
reg(0x00B7) 00 06 Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00 ILI9481, HX8357-B
reg(0x00C0) 00 21 00 00 00 00 00 00 00 Panel Control
reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA
reg(0x00CC) 00 72 Panel Control
reg(0x00D0) 00 00 00 Power Control
reg(0x00D2) 00 00 00 03 03 NVM Read
reg(0x00D3) 00 00 93 41 ILI9341, ILI9488
reg(0x00DA) 00 00 RDID1
reg(0x00DB) 00 00 RDID2
reg(0x00DC) 00 00 RDID3
reg(0x00E0) 00 0F 16 14 0A 0D 06 43 75 33 06 0E 00 0C 09 08 GAMMA-P
reg(0x00E1) 00 08 2B 2D 04 10 04 3E 24 4E 04 0F 0E 35 38 0F GAMMA-N
reg(0x00EF) 00 03 80 02 02 02 ILI9327
reg(0x00F2) 00 02 02 02 02 02 02 02 02 02 02 02 Adjust Control 2
reg(0x00F6) 00 01 00 00 Interface Control
I just tried the examples from the libs you suggested. Works now, THANKS!
SOLUTION (for other):
1: Just plug in the display (shield) as you would on an UNO
2: Download and unpack libs (MCUFRIEND_kbv)
3: Build and upload the graphictest_kbv project to DUE
It works!