lm3s1968: generic UART driver.
[bertos.git] / examples / demo / demo.c
index 0dbce6e96daa7c83273df5341ec83211541c5b78..cd9487cd93d9b6ef6150b8aea7c3b11fc6efc3f7 100644 (file)
@@ -92,11 +92,12 @@ static void hello_world(Bitmap *bm)
        /* Set big font */
        gfx_setFont(bm, &font_ncenB18);
 
-       text_xprintf(bm, 1, 0, STYLEF_BOLD | TEXT_FILL | TEXT_CENTER,
+       text_xprintf(bm, 0, 0, STYLEF_BOLD | TEXT_FILL | TEXT_CENTER,
                        "Hello, world!");
        schedule();
-
-       timer_delay(1000);
+       while (1)
+               if (kbd_peek())
+                       break;
 
        /* Restore old font */
        gfx_setFont(bm, old_font);