diff options
Diffstat (limited to 'demos/drawing/main.c')
-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);
|