Lib for FTDI FT800 graphic controller "EVE" The API is changed from the FTDI original names. It use smaller names now. DL() will add something to the display list instead of Ft_App_WrCoCmd_Buffer ... The FTDI programmer Guide is also using this commands.

Dependents:   FT800_RGB_demo FT800_RGB_demo2 FT800_demo_for_habr Temp_&_RH_at_TFT-demo ... more

Fork of FT800 by Peter Drescher

The mbed is talking thru the SPI interface with the graphic engine. We have to set up a list of Commands and send them to the FT800 to get graphics.

Hardware

1. VM800C development modules from FTDI : http://www.ftdichip.com/Products/Modules/VM800C.html

The modules come with different size lcd. 3.5", 4.3" or 5" or without. /media/uploads/dreschpe/ftdi_eve.jpg The picture shows a modified board, because my lcd had a different pinout. The mbed is connected to the pin header on the bottom.

2. EVBEVE-FT800 board from GLYN: http://www.glyn.com/News-Events/Newsletter/Newsletter-2013/October-2013/A-quick-start-for-EVE-Requires-no-basic-knowledge-graphics-sound-and-touch-can-all-be-learned-in-minutes

The module has a 40 pin flex cable connector to connect a display out of the EDT series.

/media/uploads/dreschpe/glyn_eve.jpg

The mbed is connected via the pin header on the left. If you use this board with a EDT display you have to uncomment the #define Inv_Backlite in FT_LCD_Type.h, because the backlight dimming is inverted.

3. ConnectEVE board from MikroElektronika http://www.mikroe.com/add-on-boards/display/connecteve/#headers_10 The board has also a pin header to connect the mbed. - not tested, but it looks like the other boards.

4. ADAM arduino shield http://www.4dsystems.com.au/product/4DLCD_FT843/ Component page : http://mbed.org/components/ADAM/

Works with the NUCLEO boards, but you have to patch three wires.

/media/uploads/dreschpe/adam.jpg

Connection

We need 5 signals to connect to the mbed. SCK, MOSI and MISO are connected to a SPI channel. SS is the chip select signal and PD work as powerdown. The additional INT signal is not used at the moment. It is possible to generate a interrupt signal, but at the moment you have to poll the status register of the FT800 to see if a command is finished.

Software

This lib is based on the demo code from FTDI. If you want to use it, you have to read the programming manual : http://www.ftdichip.com/Support/Documents/ProgramGuides/FT800%20Programmers%20Guide.pdf

See my demo : http://mbed.org/users/dreschpe/code/FT800_RGB_demo/

Revision:
4:363ec27cdfaa
Parent:
3:392d2c733c68
Child:
6:16e22c789f7d
--- a/FT_Gpu_Hal.h	Fri Sep 19 15:56:15 2014 +0000
+++ b/FT_Gpu_Hal.h	Sat Sep 20 11:35:43 2014 +0000
@@ -226,7 +226,7 @@
     ft_void_t Keys(ft_int16_t x, ft_int16_t y, ft_int16_t w, ft_int16_t h, ft_int16_t font, ft_uint16_t options, const ft_char8_t* s);
     ft_void_t Dial(ft_int16_t x, ft_int16_t y, ft_int16_t r, ft_uint16_t options, ft_uint16_t val);
     ft_void_t LoadImage(ft_uint32_t ptr, ft_uint32_t options);
-    ft_void_t Dlstart();
+    ft_void_t DLstart();
     ft_void_t Snapshot(ft_uint32_t ptr);
     ft_void_t ScreenSaver();
     ft_void_t Memcrc(ft_uint32_t ptr, ft_uint32_t num, ft_uint32_t result);
@@ -243,7 +243,7 @@
 
     ft_uint16_t fifo_Freespace( );
 
-    ft_void_t WrCoCmd_Buffer(ft_uint32_t cmd);
+    ft_void_t DL(ft_uint32_t cmd);
     ft_void_t WrDlCmd_Buffer(ft_uint32_t cmd);
     ft_void_t Flush_DL_Buffer();
     ft_void_t Flush_Co_Buffer();
@@ -253,6 +253,9 @@
 
 	ft_void_t Sound_ON();
 	ft_void_t Sound_OFF();
+	
+	int Load_jpg(char* filename, ft_int16_t* x_size, ft_int16_t* y_size);
+	ft_void_t Calibrate();
 
 };  // end of class