Search Code
About Terminal

First published 31 Dec 2009, with 3 revisions since.
Last update: 31 Dec 2009.
View history

Last change message: N/A

Related to
Terminal_HelloWorld
Hello World for the Terminal ANSI/VT100 interface library
tag ANSI, helloworld, Serial, Terminal


geigercounter01
ガイガーカウンタのカウントアップに合わせて表示内容を更新する仕様にしました
tag ci3-bg, geiger, geigercounter, si-3bg

geigercounter04
ネットワークアップデート機能とか、Pachubeへの情報登録とかの処理を追加しています
tag counter, geiger, sbm-20

Import this program

Terminal

Published 31 Dec 2009, by   user Simon Ford   tag No tags
Embed: (wiki syntax)

« Back to documentation index

You are viewing an out of date revision of Terminal! View latest revision

Show/hide line numbers main.cpp Source File

main.cpp

00001 // simple test for a ANSI/VT100 Terminal, sford
00002 
00003 #include "mbed.h"
00004 
00005 #include "Terminal.h"
00006 
00007 Terminal term(USBTX, USBRX); // tx, rx
00008 
00009 int main() {
00010     term.printf("Hello World!\nHow are you?");
00011 
00012     wait(2);
00013 
00014     term.locate(3,1);
00015     term.foreground(0xFF0000);
00016     term.printf("I'm Great!");
00017 
00018     wait(3);
00019 
00020     term.cls();
00021 }