Programabilno vođenje DC motora

Revision:
0:111d0d8f408d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DCMotor_seminarski.h	Sun Feb 14 20:26:18 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef MBED_DCMotor_seminarski_H
+#define MBED_DCMotor_seminarski_H
+
+#include "mbed.h"
+
+class Motor{
+    public:
+    Motor(PinName naprijed, PinName nazad);
+    void naprijedbrzo();
+    void naprijedsporo();
+    void nazadbrzo();
+    void nazadsporo();
+    void naprijedrampa();
+    void stop();
+    
+    private:
+     PwmOut _naprijed;
+    PwmOut _nazad;
+};
+
+#endif
\ No newline at end of file