diff options
author | Tectu <joel@unormal.org> | 2012-12-20 08:41:59 -0800 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-12-20 08:41:59 -0800 |
commit | 65aa1d42d6421a47880d826b2cd8e532b17fc55c (patch) | |
tree | 89d346903bcacba72d2d28571cdab69f0b71a15e /demos/modules/window/main.c | |
parent | e00f8593e85245a847280dafe10e5a834268557e (diff) | |
parent | 2c5d5c51183fbdb01f24afdbb5d29dbf00f4f836 (diff) | |
download | uGFX-65aa1d42d6421a47880d826b2cd8e532b17fc55c.tar.gz uGFX-65aa1d42d6421a47880d826b2cd8e532b17fc55c.tar.bz2 uGFX-65aa1d42d6421a47880d826b2cd8e532b17fc55c.zip |
Merge pull request #29 from inmarket/master
New demos, ginput fix, SSD1289 fix
Diffstat (limited to 'demos/modules/window/main.c')
-rw-r--r-- | demos/modules/window/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/modules/window/main.c b/demos/modules/window/main.c index 88f71be3..e9cf21e0 100644 --- a/demos/modules/window/main.c +++ b/demos/modules/window/main.c @@ -28,6 +28,7 @@ GHandle GW1, GW2; int main(void) {
halInit();
chSysInit();
+ coord_t i, j;
/* Initialize and clear the display */
gdispInit();
@@ -47,6 +48,10 @@ int main(void) { gwinClear(GW1);
gwinClear(GW2);
+ gwinDrawLine (GW1, 5, 30, 150, 110);
+ for(i=5, j=0; i < 200 && j < 150; i+=3, j+=i/20)
+ gwinDrawPixel (GW1, i, j);
+
/*
* Draw two filled circles at the same coordinate
* of each window to demonstrate the relative coordinates
|