team2 / Arduino
Revision:
0:d93ce07131fc
Child:
1:d96590319bcf
diff -r 000000000000 -r d93ce07131fc Arduino.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Arduino.h	Sat Apr 07 04:11:19 2018 +0000
@@ -0,0 +1,20 @@
+#ifndef ARDUINO
+#define ARDUINO
+ 
+#include "mbed.h"
+ 
+class Arduino {
+public:
+    Arduino(PinName tx, PinName rx);
+    int getLdrY();
+    int getLdrX();
+    int getColor();
+    int getOrientation();
+    
+private:  
+    Serial _arduino(_tx, _rx);
+    void _sendCommand();
+    int _receiveData();
+};
+ 
+#endif
\ No newline at end of file