aboutsummaryrefslogtreecommitdiffstats
path: root/demos/console/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/console/main.c')
-rw-r--r--demos/console/main.c18
1 files changed, 15 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
*/
+/*
+ * !!! 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());