Demo of the FT810 Based on Code from FTDI modified by Peter Drescher

Dependencies:   FT800_3 mbed

Fork of FT800_RGB_demo2 by Peter Drescher

/media/uploads/davidchilds/img_20160224_162012.jpg

This code, adapted from Peter Drescher, adapted from FTDI, to use on the FTDI FT810 chip with a nice 800x480 screen. Basically the memory locations have moved since the screen is bigger and so there is more RAM memory before the registers.

Revision:
1:7a29cc1298ef
Parent:
0:528baa4e7913
Child:
2:8800d9144869
--- a/main.cpp	Sun Sep 21 21:25:09 2014 +0000
+++ b/main.cpp	Wed Feb 24 14:25:12 2016 +0000
@@ -1,4 +1,5 @@
 /* Demo for mbed Library for FTDI FT800  Enbedded Video Engine "EVE"
+Updated for FTDI FT810 driver and 800x480 display.
  * by Peter Drescher, DC2PD 2014
  * Released under the MIT License: http://mbed.org/license/mit */
 
@@ -6,8 +7,8 @@
 #include "FT_Platform.h"
 
 
-FT800 TFT(PA_7,PA_6,PA_5,PC_7,PB_4,PA_9);  // mosi, miso, sck, ss, int, pd     // the FT800 is connected to SPI 11-13
 
+FT800 TFT(p5,p6,p7,p8,p9,p10); // the FT800 is connected to SPI 5-7, then we have CS, INT, PD
 // global Vars
 unsigned int r,b,g;
 
@@ -23,7 +24,7 @@
         b = V * 255;
         return;
     }
-    if(H > 360.0) H = 0.0;   // check values
+    if(H > 480.0) H = 0.0;   // check values
     if(S > 1.0) S = 1.0; 
     if(S < 0.0) S = 0.0;
     if(V > 1.0) V = 1.0;
@@ -112,7 +113,7 @@
     TFT.Text(22, 208, 30, 0, "Brightness");// text Brightness
     
     TFT.DL(POINT_SIZE(100));               // color point around the dial 
-    TFT.DL(BEGIN(POINTS));                  
+    TFT.DL(BEGIN(FTPOINTS));                  
     TFT.DL(COLOR_RGB(0x0,0x0,0xff));       // color of next point 
     TFT.DL(VERTEX2II(183,47,0,0));         // set point x,y 
     TFT.DL(COLOR_RGB(0xff,0x0,0x0)); 
@@ -139,6 +140,7 @@
 
 int main()
 {
+
     unsigned int color = 0,bright = 0;
     ft_uint32_t TrackRegisterVal = 0;              // touch track