New work version with additional functions

Dependencies:   4DGL-UC ConfigFile MODSERIAL mbed mbos

Fork of CDU_Mbed_35 by Engravity-CDU

Revision:
17:b3545e9d38f7
Parent:
13:d60c746c097c
Child:
18:fd672797458c
--- a/display.cpp	Tue Aug 26 14:02:48 2014 +0000
+++ b/display.cpp	Tue Aug 26 14:18:39 2014 +0000
@@ -3,9 +3,11 @@
 #include "TFT_4DGL.h"
 #include "display.h"
 #include <string>
+#include "pins.h"
 using namespace std;
-DigitalOut VGA_SOURCE( p7 ); //control line for video switch between INT and EXT video
-DigitalOut VGA_SELECT( p8 ); //control line to select/deselect video switch
+
+DigitalOut VGA_SOURCE( VGA_SOURCE_SELECT ); //control line for video switch between INT and EXT video
+DigitalOut VGA_SELECT( VGA_ON_OFF ); //control line to select/deselect video switch
 /*
 =====================================================
 SGC (Serial Graphics Controller) PLATFORM OUTPUT FILE
@@ -86,8 +88,10 @@
  Maximum length is 24 characters, minimum length is 1 character for font F0
 Maximum length is 48 characters, minumum length is 1 character for font F1.
 */
+
 //Control lines for VGA driver board
-TFT_4DGL display(p13,p14,p15); // serial tx, serial rx, reset pin
+TFT_4DGL display(VGA_TX,VGA_RX,VGA_RESET); // serial tx, serial rx, reset pin
+
 //Character & String functions
 char* str2char( string cString ) //convert a string to a character array
     {