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

Dependents:   PWM_LED_Lights

Revision:
0:134dece3e39b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Host.h	Tue Sep 21 16:45:38 2021 +0000
@@ -0,0 +1,19 @@
+#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
\ No newline at end of file