Lightweight FlyBed1, structure based on KK-Board Firmware First this one should work, then I can get more complex FlyBed1 working :)

Dependencies:   mbed MODI2C

PC/PC.h

Committer:
maetugr
Date:
2015-11-19
Revision:
3:9cde4e9740fc
Parent:
0:d51bf879e9df

File content as of revision 3:9cde4e9740fc:

#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