Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GA-Test_copy by
PC/PC.h
- Committer:
- aungriah
- Date:
- 2017-12-06
- Revision:
- 0:a3b83d366423
- Child:
- 1:346279def7ac
File content as of revision 0:a3b83d366423:
#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
