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.

Files at this revision

API Documentation at this revision

Comitter:
davidchilds
Date:
Wed Feb 24 14:25:12 2016 +0000
Parent:
0:528baa4e7913
Child:
2:8800d9144869
Commit message:
Demo for FT810; Based on FTDI code modified by Peter Drescher

Changed in this revision

FT800_2.lib Show diff for this revision Revisions of this file
FT800_3.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/FT800_2.lib	Sun Sep 21 21:25:09 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/dreschpe/code/FT800_2/#363ec27cdfaa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FT800_3.lib	Wed Feb 24 14:25:12 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/davidchilds/code/FT800_3/#a69ac4d39afd
--- 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
 
--- a/mbed.bld	Sun Sep 21 21:25:09 2014 +0000
+++ b/mbed.bld	Wed Feb 24 14:25:12 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3
\ No newline at end of file