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: uStep.h
- Revision:
- 4:c80c7ea50a3c
- Parent:
- 2:627a47c7f619
--- a/uStep.h Sat Jan 14 18:19:52 2017 +0000
+++ b/uStep.h Sat Jan 21 09:25:49 2017 +0000
@@ -10,7 +10,13 @@
uStep(PinName FAZ1, PinName FAZ2, PinName FAZ3, PinName FAZ4); // KONSTRUKTOR MOTORA
- void step(int num_steps, int smjer, int brzina);
+ void step(int num_steps, int smjer, float brzina);
+ bool isRunning();
+private:
+ DigitalOut _FAZ1;
+ DigitalOut _FAZ2;
+ DigitalOut _FAZ3;
+ DigitalOut _FAZ4;
void ooskz();
void skz();
void step1();
@@ -21,15 +27,14 @@
void step6();
void step7();
void step8();
-
-
-private:
- DigitalOut _FAZ1;
- DigitalOut _FAZ2;
- DigitalOut _FAZ3;
- DigitalOut _FAZ4;
-
-
+ void motorStop();
+ float motorbrzina; // BRZINA STEP MOTORA
+ int i;
+ int trenutniKorak;
+ int maxKoraci;
+ Ticker steptick;
+ void zbrojiZaJedan();
+ bool busy;
};
#endif
\ No newline at end of file