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:b5d1c04a1e24
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.h Mon Dec 06 11:39:00 2021 +0000
@@ -0,0 +1,14 @@
+#ifndef MOTOR // Provjera lib "MOTOR"
+#define MOTOR // Definiranje lib "MOTOR"
+#include "mbed.h"
+
+class Motor // Stvaranje klase Motor
+{
+public:
+ Motor(PinName pin1, PinName pin2); // Konstruktor klase Motor
+ int Control(); // Prototip funkcije "Control" za upravljanje motorom
+private:
+ AnalogIn A_pin; // Varijabla za prosljeđivanje Analog ulaza
+ PwmOut P_pin; // Varijabla za prosljeđivanje PWM ulaza
+};
+#endif // završava definiranje lib "MOTOR"
\ No newline at end of file