Hello kevin

Dependencies:   4DGL-uLCD-SE MutexLocker SDFileSystem mbed-rtos mbed wave_player

Fork of uLCD144G2_demo by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
4180_1
Date:
Fri Feb 25 01:59:37 2011 +0000
Parent:
0:cfcf73272647
Child:
2:75727e89a717
Commit message:

Changed in this revision

4DGL.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
uVGAII_4DGL.lib Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/4DGL.lib	Fri Feb 25 01:59:37 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Kerpower/code/4DGL/#6063b076187b
--- a/main.cpp	Thu Feb 24 15:15:39 2011 +0000
+++ b/main.cpp	Fri Feb 25 01:59:37 2011 +0000
@@ -19,18 +19,21 @@
 #include "mbed.h"
 #include "TFT_4DGL.h"
 
+// overwrite 4DGL library screen size settings in TFT_4DGL.h
+#define SIZE_X  479
+#define SIZE_Y  639
+//
+
 TFT_4DGL ecran(p9,p10,p11); // serial tx, serial rx, reset pin;
 
 int main() {
-    char s[500];
-    int x = 0, y = 0, status, xc = 0, yc = 0;
-    
- 
+//    char s[500];
+//    int x = 0, y = 0, status, xc = 0, yc = 0;
+
     ecran.baudrate(115200);
-// new code to set resolution to 640 by 480
-// also changed max size_x and size_y in TFT_4DGL_graphics.h
-// Screen_res command is 12 decimal and not 12hex as listed in manual
-    ecran.display_control(SCREEN_RES, char(1));
+// added - Set Display to 640 by 480 mode
+    ecran.display_control(0x0c, 0x01);
+//
     ecran.background_color(DGREY);
     ecran.circle(120, 160, 80, 0xFF00FF);
     ecran.triangle(120, 100, 40, 300, 200, 270, 0x0000FF);
@@ -51,7 +54,7 @@
     ecran.text_string("This is a test of string", 2, 12, FONT_8X8, WHITE);
     ecran.graphic_string("This is a test of graphic string", 20, 200, FONT_8X8, WHITE, 2, 2);
     ecran.text_button("OK", UP, 40, 260, 0xFF0000, FONT_8X8, BLACK, 2, 2);
-// demo code deleted here for touch screen - no touch screen on uVGA II
 
- 
+  // delete touch screen demo - no touch on uVGA II
+
 }
\ No newline at end of file
--- a/mbed.bld	Thu Feb 24 15:15:39 2011 +0000
+++ b/mbed.bld	Fri Feb 25 01:59:37 2011 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
+http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da
--- a/uVGAII_4DGL.lib	Thu Feb 24 15:15:39 2011 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/4180_1/code/uVGAII_4DGL/#e25ba425dc7b