Library for LCD - SPI, FT810 ???

Hello,
Please excuse my English, I use a translator.
I purchased this LCD: http://elty.pl/en_US/p/Wyswietlacz-LCD-5-800x480-z-panelem-dotykowym-sterowanianie-SPI%2C-kontoler-FT810-/1783

Does anyone have experience please FT810 or functional library for FT810? I use Arduino 1.6.10
I downloaded the code https://elty.pl/upload/download/FT_App_Gradient.rar that does not work and end this error:

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
In file included from sketch\FT_Platform.h:198:0,

from sketch\FT_CoPro_Cmds.cpp:31:

FT_DataTypes.h:53: error: 'prog_uchar' does not name a type

typedef prog_uchar ft_prog_uchar8_t;

^

FT_DataTypes.h:54: error: 'prog_char' does not name a type

typedef prog_char ft_prog_char8_t;

^

FT_DataTypes.h:55: error: 'prog_uint16_t' does not name a type

typedef prog_uint16_t ft_prog_uint16_t;

^

In file included from sketch\FT_Platform.h:199:0,

from sketch\FT_CoPro_Cmds.cpp:31:

FT_Gpu_Hal.h:275: error: 'ft_prog_uchar8_t' does not name a type

ft_void_t Ft_Gpu_Hal_WrMemFromFlash(Ft_Gpu_Hal_Context_t *host,ft_uint32_t addr,const ft_prog_uchar8_t *buffer, ft_uint32_t length);

^

FT_Gpu_Hal.h:276: error: 'ft_prog_uchar8_t' has not been declared

ft_void_t Ft_Gpu_Hal_WrCmdBufFromFlash(Ft_Gpu_Hal_Context_t *host,FT_PROGMEM ft_prog_uchar8_t *buffer,ft_uint32_t count);

^

exit status 1
'prog_uchar' does not name a type

Could you give me an advice please? I'm no expert. Thanks for any advice.

I have a FT813 (5", 800x400, capacitive touch screen)+Riverdi breakout from Riverdi on arduino Due and Teensy 3.2. The main diference with your TFT: the FT810 have a resistive touch screen.

Try with this modified library (GD3 based on gamediuno 2 lib) for FT81X: GD3 lib

Wiring:

FT81X                 Arduino Due

MOSI                  pin 11
MISO                  pin 12
SCK                   pin 13
GND                   GND
VCC                   3.3V
GPU sel (TFT CS)      pin 10

SD-CS                 pin 5

Video: FT813 on arduino Due

Thank you. The library GD3 compilation will be fine. The display remains black and nothing happens. I mean, if the problem is in the wiring. I want to engage on the Arduino UNO.

MOSI - UNO pin 11
MISO - UNO pin 12
SCK - UNO pin 13

Here, I'm not sure pinout TFT:
CS - ?
PD - ?
INT - ?

Please, any idea?
Thank you

For the FT810 VCC must be of 5V. Don´t worry, the back shield of the TFT have two logic level converters (5/3.3V). This is the datasheet for the FT810

Then the correct wiring for UNO is this:

FT810 (HotMCU)      Arduino UNO (GD3 lib)

MOSI                  pin 11
MISO                  pin 12
SCK                   pin 13
GND                   GND
VCC                   5.0V
CS                    pin 10

PD and INT are not needed to the GD3 library

I'm sorry, TFT is still black. The pinout is ok, but still nothing ...

Please, Can you show some pictures of your wiring?, in order to see the setup of your TFT

Here is a photo of my wiring TFT display

I can see the problem.

Your wiring it is wrong. You must cut the miniboard (identified as J4) and install the flat cable between two flat headers (J1 and J4).

Like this:

At the end the miniboard install the wiring to arduino UNO, you must weld some pin headers


You must to use short wires: more or less 10 to 14 centimeters.

Then load the GD3 Hello world! sketch.

I modified Wiring, cables are short. Sending photo wiring. TFT is unfortunately still black. Skica GD3 Hello world.

Maybe the FT810 from HotMCU needed the PD-pin

In this post: Pantalla FT800CB HY43B/50B HOWTO y Librería Gameduino2 - Documentación - Arduino Forum

Showing us that the pin PD must be connected in pin 8 of the arduino UNO, in order to reset all lines of the chip driver of the screen.

  1. IDE arduino: 1.6.11
  2. Connect PD from the FT810 to pin 8 on the arduino UNO
  3. Load this modified sketch for the PD-pin
#include <SPI.h>
#include <GD3.h>

#define PDPin 8

void setup()
{
  Serial.begin(9600); 

  pinMode(PDNPin, OUTPUT);
  digitalWrite(PDPin, HIGH);  
  delay(20);
  digitalWrite(PDPin, LOW);
  delay(20);
  digitalWrite(PDPin, HIGH);
  delay(20);

  GD.begin();
}

void loop()
{
  GD.ClearColorRGB(0x103000);
  GD.Clear();
  GD.cmd_text(GD.w / 2, GD.h / 2, 31, OPT_CENTER, "Hello world");
  GD.swap();
}
  1. Disconnect and reconnect the arduino board from the USB cable.

My test hardware:

Arduino UNO
Riverdi Arduino shield (converter 5v/3.3V)
Riverdi TFT FT813 , 5", capacitive touch

GD3 library (GD2 modified for FT81X)

YES!

Now is TFT function. It really must PD pin connected. Furthermore, it is necessary to determine GD.begin (1, 2 or 3). If not specified, the TFT may not start.

But I have some questions:
1 / Picture on TFT rotated 180 degrees. Why?
2 / It is possible to use the library GD3 on FT800? If you join now FT800, the display only shows colored stripes.

Thank you for your helpful hints that are of great benefit.

You have a FT800 TFT?. In that case, you can to use the GD2 library. In fact both libraries can coexist in the arduino library folder at same time.

Remember: the GD3 zip have both libraries: GD3 and GD2

For a FT800 or FT801: remove the FT81X TFT from the arduino board, connect the FT80X TFT, and then to change GD3 by GD2, in the sketch header.

To set up for the GD3 library (FT81X)

#include <SPI.h>
#include <GD3.h>

To set up for the GD2 library (FT80X)

#include <SPI.h>
#include <GD2.h>

The rotation

This library (GD3 or GD2) has the orientation of the gameduino 2 board.

But the FT81X has a new instruction to modified the orientation. Locate this sketch: FT81X_Rotacion.ino inside of the GD3 examples and then to change GD2 by GD3 (sorry about that, this is a work in progress... needed to make some corrections).

Rotation = 0

Rotation = 1

Rotation = 2

Rotation = 3

PD: can you show some pictures of your FT810 running?. it is amazing to know that the GD3 library really works!

Here attached a photo, a library GD2 FT800 and FT810 with library GD3. Skica FT81X_Rotacion seems to work, but so far I really looking for why. I still have to look why.

It's really great that the library works on FT800 and FT810.

I'm sorry, there are attached files

another..

Martin_:
Here attached a photo, a library GD2 FT800 and FT810 with library GD3. Skica FT81X_Rotacion seems to work, but so far I really looking for why. I still have to look why.

It's really great that the library works on FT800 and FT810.

Ups, my mistake!. For this example you need a SD card reader in paralell to the SPI lines from the screen FT810 or FT800

Maybe this reader could work it in the arduino UNO: Catalex SD card reader

SD reader    Arduino UNO
SD pin          5
MOSI           11
MISO           12
SCK            13
GND            GND
VCC            5V

The image jpg and icons file (zx13.jpg, Icons2.gd2) is inside of the folder of the sketch, this is the path:

\Documents\Arduino\libraries\GD3\3.Expert\FT81X_Rotacion\MicroSD

Put the two files in to the SD card, then run again the sketch

So understand well that the image rotation can be, but directly as text

GD.cmd_text (GD.w / 2 GD.h / 2, 31, OPT_CENTER, "Hello world");

No?
SD card reader now I have not got yet available. I need to buy for this attempt.

Try this:

#include <SPI.h>
#include <GD3.h>

void setup()
{
  Serial.begin(9600);
  GD.begin();
  GD.cmd_setrotate(3);  //0, 1, 2, 3
}

void loop()
{
  GD.ClearColorRGB(0x103000);
  GD.Clear();
  //GD.cmd_text(GD.w / 2, GD.h / 2, 31, OPT_CENTER, "Hello world   setrotate(0)");  //setrotate(0)
  //GD.cmd_text(GD.w / 2, GD.h / 2, 31, OPT_CENTER, "Hello world   setrotate(1)");  //setrotate(1)
  //GD.cmd_text(GD.h / 2, GD.w / 2, 31, OPT_CENTER, "Hello world   setrotate(2)");  //setrotate(2)
  GD.cmd_text(GD.h / 2, GD.w / 2, 31, OPT_CENTER, "Hello world   setrotate(3)");  //setrotate(3)
  GD.swap();
}

Hi,

Got a FT810 5" LCD with 800x480 resolution.
Yet the screen looks weird.

Are there any parameters that I might need to tweak?

Christos

P.S.
This is its page -> 5" LCD touchscreen 800x480 SPI FT810