test program for my vt100 library. tested on FRDM-KL25Z. this may work with other mbed platform with stdout.

Dependencies:   mbed vt100

A simple test program to test my vt100 library.

I have tested this with my FRDM-KL25Z. But hopefully it will work other platforms with "printf" function.

先にパブリッシュした vt100 ライブラリのテストプログラムです。 FRDM-KL25Z でテストしましたが、printf をサポートしている 他のmbed プラットフォームでも動くのではないかと思います。 (動くといいな~)

/media/uploads/Rhyme/line_pict.jpg

/media/uploads/Rhyme/circle_pict.jpg

Revision:
1:21fe79ead178
Parent:
0:53ff82c87c14
--- a/main.cpp	Mon Dec 01 12:59:29 2014 +0000
+++ b/main.cpp	Mon Dec 01 13:08:21 2014 +0000
@@ -1,6 +1,13 @@
 #include "mbed.h"
 #include "vt100.h"
 
+/** test_vt100
+ * test program for my vt100 library
+ * 
+ * terminal program must be at least 80x25
+ * and needless to say, should supporting vt100 commands
+ */
+ 
 vt100 tty ;
 
 int left = 2 ;
@@ -76,6 +83,8 @@
     int count = 0 ;
     while(1) {
         tty.cls() ;
+        tty.locate(10, 1) ;
+        printf("<< vt100 library test program >>") ;
         drawFrame() ;
         switch(count++) {
         case 0: drawYeqX() ; break ;