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.
Dependents: Nucleo_F411RE_OS_Robot_Tank
Diff: motodriver.h
- Revision:
- 0:cd71771d494f
- Child:
- 1:d31307e787fd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/motodriver.h Tue Jun 19 08:50:21 2018 +0000
@@ -0,0 +1,21 @@
+#ifndef MOTORDRIVER_H_ADA
+#define MOTORDRIVER_H_ADA
+
+class Motor
+{
+ public:
+ Motor(PinName pwm1pin, PinName pwm2pin);
+
+ float Speed(float speed);
+
+ void Stop();
+
+ private:
+ PwmOut _pwm1;
+ PwmOut _pwm2;
+
+ /** Initialization. */
+ void init();
+};
+
+#endif
\ No newline at end of file