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.
PC.h
00001 #include "mbed.h" 00002 00003 #ifndef PC_H 00004 #define PC_H 00005 00006 #define COMMAND_MAX_LENGHT 300 00007 00008 class PC : public Serial 00009 { 00010 public: 00011 PC(PinName tx, PinName rx, int baud); 00012 void cls(); // to clear the display 00013 void locate(int column, int row); // to relocate the cursor 00014 void readcommand(void (*executer)(char*)); // to read a char from the pc to the command string 00015 00016 char command[COMMAND_MAX_LENGHT]; 00017 private: 00018 int command_char_count; 00019 }; 00020 #endif
Generated on Tue Jul 12 2022 15:21:24 by
1.7.2