Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:38ef731c7bdf, committed 2011-02-25
- Comitter:
- 4180_1
- Date:
- Fri Feb 25 01:59:37 2011 +0000
- Parent:
- 0:cfcf73272647
- Commit message:
Changed in this revision
--- /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
uVGA II
uVGAII