gen4-FTDI Display Series - GETTING STARTED MANUAL
|
6
GETTING STARTED WITH A SIMPLE PROJECT
After successfully connecting the display module to the host controller you are
using, you can now start creating a basic application. This section shows how to
show a simple keyboard on the display module using the example uploaded on
the FTDI chip website. The display module used on this example is gen4-FT812-
43DCT-CLB
Note:
For the sake of the discussion, the example used on this project is based on the
Arduino sketch provided by the FTDI website. With these, the host controller will be the
Arduino UNO.
Follow the following steps below:
1.
website.
2.
Extract the file and navigate to App_Keyboard > Project > Arduino >
App_Keboard. Open the
App_Keyboard.ino.
3.
Edit the
Platform.h
and add the following configuration needed by the display
to run the application.
(a.)
On line 41 of the Platform.h -
/* Module specific configurations *,
add the
display definition
#define GEN4FT812_43
and uncomment the display previously defined
//
#define VM800P43_50
(b.)
Add the display definition by copying the code below and pasting it on the
Platform.h on line 49.
#ifdef GEN4FT812_43
#define DISPLAY_RESOLUTION_WQVGA (1)
#define FT812_ENABLE (1)
#define ENABLE_SPI_SINGLE (1)
#define ARDUINO_ATMEGA328P_I2C (1)
#define RTC_PRESENT (0)
#define FT800_CS (9)
#define SDCARD_CS (10)
#define FT800_INT (7)
#define FT800_PD_N (8)
#define ARDUINO_PRO_SPI_CS FT800_CS
#define ARDUINO_PLATFORM_SPI (1)
#define ARDUINO_PLATFORM_COCMD_BURST (1)
#define RESISTANCE_THRESHOLD (1800)
#endif