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: PC/PC.cpp
- Revision:
- 7:9d4313510646
- Child:
- 8:d25ecdcdbeb5
diff -r 179752756e9f -r 9d4313510646 PC/PC.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PC/PC.cpp Mon Oct 15 17:23:06 2012 +0000 @@ -0,0 +1,18 @@ +#include "PC.h" +#include "mbed.h" + +PC::PC(PinName tx, PinName rx) : Serial(tx, rx) +{ +} + + +void PC::cls() +{ + printf("\x1B[2J"); +} + + +void PC::locate(int Spalte, int Zeile) +{ + printf("\x1B[%d;%dH", Zeile + 1, Spalte + 1); +}