aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-13 02:04:20 +0200
committerJoel Bodenmann <joel@unormal.org>2012-10-13 02:04:20 +0200
commit166d78c97aa237a076b2f003dc51b535722d58c3 (patch)
tree7cd54637c21e332c733c74217c5b8e4c12d0643e /demos
parentda4369c12571916632d806655a507d21a18c2934 (diff)
downloaduGFX-166d78c97aa237a076b2f003dc51b535722d58c3.tar.gz
uGFX-166d78c97aa237a076b2f003dc51b535722d58c3.tar.bz2
uGFX-166d78c97aa237a076b2f003dc51b535722d58c3.zip
console updates
Diffstat (limited to 'demos')
-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());