From 57c7ec763be48bfc0fa5801191092fcace8e761b Mon Sep 17 00:00:00 2001 From: trsaunders Date: Tue, 19 Jun 2012 22:48:19 +0100 Subject: BaseSequentialStream support --- demos/drawing/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'demos') 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); -- cgit v1.2.3