A simple wrapper for the Raw serial class to transmit double variables.

Dependents:   EquatorStrutDigitalMonitor

Revision:
0:ff597e1c059d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LightWeightSerialTransmit.h	Fri Aug 22 06:37:08 2014 +0000
@@ -0,0 +1,28 @@
+#ifndef LIGHT_WEIGHT_SERIAL_TRANSMIT_H
+#define LIGHT_WEIGHT_SERIAL_TRANSMIT_H
+
+#include "mbed.h"
+#include "RawSerial.h"
+
+class LWSerialTX
+{
+public:
+    LWSerialTX(int baudRate);
+    
+    enum Delimiters
+    {
+        Tab = 9,
+        Comma = 44,
+        Space = 32
+    };
+    
+    void Transmit(double output);
+    void Delimiter(Delimiters delimiter);
+    void NewLine();
+    void NewFile();
+    
+private:
+    RawSerial* SerialConnection;
+};
+
+#endif
\ No newline at end of file