Extension to serial communication. GetInput() method that takes string input from serial device

Dependents:   PWM_LED_Lights

Host.h

Committer:
nzupcic
Date:
2021-09-21
Revision:
0:134dece3e39b

File content as of revision 0:134dece3e39b:

#ifndef HOST_H
#define HOST_H

#include <string>
#include <cstdlib>
#include "mbed.h"

class Host : public Serial{
    public:   
        Host(PinName tx, PinName rx);
        void    Init(float startValue);
        string  GetInput();
        float   Value;
        bool    Enable;
        float   LastState;
        Timer   timer;
};

#endif