Engravity-CDU / 4DGL

Dependents:   CDUFinal CDU_Mbed_21 CDU_Mbed_26 CDU_Mbed_30

Fork of 4DGL by Adam Green

Revision:
1:ebc67b51c225
Parent:
0:d6e186427f3e
Child:
3:f34ce48346bc
diff -r d6e186427f3e -r ebc67b51c225 TFT_4DGL.h
--- a/TFT_4DGL.h	Tue Jul 05 11:45:02 2011 +0000
+++ b/TFT_4DGL.h	Thu Jun 26 11:28:11 2014 +0000
@@ -22,7 +22,7 @@
 
 // Debug Verbose on terminal enabled
 #ifndef DEBUGMODE
-#define DEBUGMODE 1
+#define DEBUGMODE 0
 #endif
 
 // Common WAIT value in millisecond
@@ -74,10 +74,8 @@
 #define OPAQUE       '\x01'
 
 // Fonts Sizes
-#define FONT_5X7     '\x00'
-#define FONT_8X8     '\x01'
-#define FONT_8X12    '\x02'
-#define FONT_12X16   '\x03'
+#define FONT_15X17   '\x00'
+#define FONT_24X34   '\x01'
 
 // Touch Values
 #define WAIT         '\x00'
@@ -106,7 +104,7 @@
 #define BAUD_256000  '\x0F'
 
 // Defined Colors
-#define WHITE 0xFFFFFF
+#define WHITE 0xFFFFFF //define as 0xRRGGBB
 #define BLACK 0x000000
 #define RED   0xFF0000
 #define GREEN 0x00FF00
@@ -126,8 +124,19 @@
 
 // change this to your specific screen (newer versions) if needed
 // Startup orientation is PORTRAIT so SIZE_X must be lesser than SIZE_Y
-#define SIZE_X       240
-#define SIZE_Y       320
+// Startup default is  320x240 graphics
+
+//320x240
+//#define SIZE_X       240
+//#define SIZE_Y       320
+
+//640x480
+#define SIZE_X       480
+#define SIZE_Y       640
+
+//800x480
+//#define SIZE_X       480
+//#define SIZE_Y       800
 
 #define IS_LANDSCAPE 0
 #define IS_PORTRAIT  1
@@ -186,6 +195,7 @@
     
 /** Launch Autobaud for serial communication. This function is automatically called at startup */
     void autobaud();
+    
 /** Set serial Baud rate (both sides : screen and mbed)
 * @param Speed Correct BAUD value (see TFT_4DGL.h)
 */   
@@ -201,6 +211,7 @@
 * @param value See 4DGL documentation
 */
     void display_control(char mode, char value);
+    
 
 /** Set internal speaker to specified value
 * @param value Correct range is 8 - 127
@@ -216,12 +227,12 @@
 * @param color Circle color in HEX RGB like 0xFF00FF
 */
     void circle(int x , int y , int radius, int color);
-
     void triangle(int, int, int, int, int, int, int);
     void line(int, int, int, int, int);
     void rectangle(int, int, int, int, int);
     void ellipse(int, int, int, int, int);
     void pixel(int, int, int);
+    void showpicture(int, int, int, int, int, int, int);
     int  read_pixel(int, int);
     void screen_copy(int, int, int, int, int, int);
     void pen_size(char);