diff options
author | trsaunders <trsaunders@gmail.com> | 2012-06-19 22:48:19 +0100 |
---|---|---|
committer | trsaunders <trsaunders@gmail.com> | 2012-06-19 22:48:19 +0100 |
commit | 57c7ec763be48bfc0fa5801191092fcace8e761b (patch) | |
tree | 0b21a64d00bd7766b923bb058e5c0717f7362a02 /demos | |
parent | 1f1f9ee38a6c2beb38285d550728d9661d0dc698 (diff) | |
download | uGFX-57c7ec763be48bfc0fa5801191092fcace8e761b.tar.gz uGFX-57c7ec763be48bfc0fa5801191092fcace8e761b.tar.bz2 uGFX-57c7ec763be48bfc0fa5801191092fcace8e761b.zip |
BaseSequentialStream support
Diffstat (limited to 'demos')
-rwxr-xr-x | demos/drawing/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/drawing/main.c b/demos/drawing/main.c index 0b77f43e..c2266898 100755 --- a/demos/drawing/main.c +++ b/demos/drawing/main.c @@ -2,13 +2,19 @@ #include "hal.h"
#include "glcd.h"
+static GLCDDriver GLCDD1;
+
int main(void) {
halInit();
chSysInit();
- lcdInit();
+ lcdInit(&GLCDD1);
lcdClear(Black);
lcdDrawString(100, 100, "Hello World", White, Black);
+
+ lcdMoveCursor(10,10,White, Black);
+ chprintf((BaseSequentialStream *)&GLCDD1, "chTimeNow: %d", chTimeNow());
+
lcdDrawCircle(150, 150, 10, filled, Green);
lcdDrawLine(0, 0, lcdGetWidth(), lcdGetHeight(), Yellow);
|