Lightweight FlyBed1, structure based on KK-Board Firmware First this one should work, then I can get more complex FlyBed1 working :)
PC/PC.h
- Committer:
- maetugr
- Date:
- 2013-06-24
- Revision:
- 2:c2ebab7c189f
- Parent:
- 0:d51bf879e9df
File content as of revision 2:c2ebab7c189f:
#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