test program for my vt100 library. tested on FRDM-KL25Z. this may work with other mbed platform with stdout.
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 プラットフォームでも動くのではないかと思います。 (動くといいな~)
Revision 1:21fe79ead178, committed 2014-12-01
- Comitter:
- Rhyme
- Date:
- Mon Dec 01 13:08:21 2014 +0000
- Parent:
- 0:53ff82c87c14
- Commit message:
- minimum comment added
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 53ff82c87c14 -r 21fe79ead178 main.cpp --- 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 ;