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.
PC/PC.h
- Committer:
- maetugr
- Date:
- 2014-02-14
- Revision:
- 40:2ca410923691
- Parent:
- 34:3aa1cbcde59d
File content as of revision 40:2ca410923691:
#include "mbed.h" #ifndef PC_H #define PC_H #define COMMAND_MAX_LENGHT 300 class PC : public Serial { public: PC(PinName tx, PinName rx, int baud); void cls(); // to clear the display void locate(int column, int row); // to relocate the cursor void readcommand(void (*executer)(char*)); // to read a char from the pc to the command string char command[COMMAND_MAX_LENGHT]; private: int command_char_count; }; #endif