NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: Terminal-Emulation/terminal.cpp
- Revision:
- 5:818c0668fd2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Terminal-Emulation/terminal.cpp Sat Oct 13 08:59:03 2012 +0000 @@ -0,0 +1,19 @@ + +#include "terminal.h" +#include "mbed.h" + +terminal::terminal(PinName tx, PinName rx) : Serial(tx, rx) + { + } + + +void terminal::cls() + { + printf("\x1B[2J"); + } + + +void terminal::locate(int Spalte, int Zeile) + { + printf("\x1B[%d;%dH", Zeile + 1, Spalte + 1); + }