From 166d78c97aa237a076b2f003dc51b535722d58c3 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 13 Oct 2012 02:04:20 +0200 Subject: console updates --- demos/console/main.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'demos') diff --git a/demos/console/main.c b/demos/console/main.c index 7dc90f79..ea27c727 100644 --- a/demos/console/main.c +++ b/demos/console/main.c @@ -18,13 +18,27 @@ along with this program. If not, see . */ +/* + * !!! IMPORTANT !!! + * + * This example dosen't compile yet, there's a problem in the console source. + * This issue will be fixed soon. + */ + +/* + * Please add the following to your halconf.h + * + * #define GDISP_NEED_CONSOLE TRUE + * #define GDISP_NEED_SCROLL TRUE + */ + #include "ch.h" #include "hal.h" #include "gdisp.h" #include "chprintf.h" #include "console.h" -static GLCDConsole CON1; +static GConsole CON1; int main(void) { halInit(); @@ -34,8 +48,6 @@ int main(void) { gdispClear(Lime); lcdConsoleInit(&CON1, 0, 0, gdispGetWidth(), gdispGetHeight(), &fontLarger, Black, White); - - chprintf((BaseSequentialStream *)&CON1, "Hello the time is %d\nGoodbye.", chTimeNow()); -- cgit v1.2.3