asdf

Dependencies:   L3GD20 LSM303DLHC mbed

Revision:
0:c2ec30f28676
Child:
2:997f57aee3b7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Headers/Communication.h	Sat Mar 29 03:06:46 2014 +0000
@@ -0,0 +1,25 @@
+#ifndef COMMUNICATION_H
+#define COMMUNICATION_H
+
+#include "Core.h"
+
+class CommunicationInterface : public Serial {
+    public:
+
+        explicit CommunicationInterface(PinName a, PinName b) : Serial(a, b) {}
+
+        char getChar()
+        {
+            if(readable()) {
+                return getc();
+            }
+            
+            return (char)0; 
+        }   
+};
+
+typedef CommunicationInterface ComInterface;
+
+ComInterface WIRELESS(p28, p27);
+
+#endif
\ No newline at end of file