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.h
- Revision:
- 0:86d90c65f83b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.h Mon Sep 16 10:06:48 2019 +0000
@@ -0,0 +1,18 @@
+#ifndef MOTOR_H
+#define MOTOR_H
+
+#include "mbed.h"
+
+class Motor {
+
+public :
+ Motor(PinName dright , PinName dleft, PinName pwmpin);
+ void setpwm(float inputpwm);
+
+private :
+ PwmOut pwmpin_;
+ DigitalOut dright_;
+ DigitalOut dleft_;
+};
+
+#endif
\ No newline at end of file