tianyun ma / Mbed 2 deprecated omni

Dependencies:   QEI mbed

Revision:
0:5d1c1999d61d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor_3/Motor_3.h	Mon May 07 06:58:54 2018 +0000
@@ -0,0 +1,20 @@
+#ifndef MOTOR_3_H_
+#define MOTOR_3_H_
+#include "mbed.h"
+
+DigitalOut mydia1(PinName a1,int b1);
+DigitalOut mydia2(PinName a2,int b2);
+PwmOut mypwa(PinName pa);
+
+
+class Motor_3{
+public:
+    Motor_3(PinName dia1,PinName dia2,PinName pwa);
+    void mv(double speed);
+    int _pwmout;
+protected:
+    PinName _dia1;
+    PinName _dia2;
+    PinName _pwa;
+};
+#endif