Alejandro Ungria Hirte / GA-Berkay_Alex

Dependencies:   mbed-dev

Fork of GA-Test_copy by Huseyin Berkay Berabi

Committer:
aungriah
Date:
Wed Feb 28 16:10:21 2018 +0000
Revision:
3:8bee1711d186
Parent:
1:346279def7ac
ILBE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bberabi 1:346279def7ac 1 #include "mbed.h"
bberabi 1:346279def7ac 2
bberabi 1:346279def7ac 3 #ifndef PC_H
bberabi 1:346279def7ac 4 #define PC_H
bberabi 1:346279def7ac 5
bberabi 1:346279def7ac 6 #define COMMAND_MAX_LENGHT 300
aungriah 0:a3b83d366423 7
bberabi 1:346279def7ac 8 class PC : public Serial
bberabi 1:346279def7ac 9 {
bberabi 1:346279def7ac 10 public:
bberabi 1:346279def7ac 11 PC(PinName tx, PinName rx, int baud);
bberabi 1:346279def7ac 12 void cls(); // to clear the display
bberabi 1:346279def7ac 13 void locate(int column, int row); // to relocate the cursor
bberabi 1:346279def7ac 14 void readcommand(void (*executer)(char*)); // to read a char from the pc to the command string
aungriah 3:8bee1711d186 15 int command_char_count;
bberabi 1:346279def7ac 16
bberabi 1:346279def7ac 17 char command[COMMAND_MAX_LENGHT];
bberabi 1:346279def7ac 18 private:
bberabi 1:346279def7ac 19 };
bberabi 1:346279def7ac 20 #endif
bberabi 1:346279def7ac 21