Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Motor_3/Motor_3.h
- 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