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.
uStep.h
- Committer:
- inovak1
- Date:
- 2017-01-21
- Revision:
- 4:c80c7ea50a3c
- Parent:
- 2:627a47c7f619
File content as of revision 4:c80c7ea50a3c:
#ifndef USTEP_H
#define USTEP_H
#include "mbed.h"
class uStep
{
public:
uStep(PinName FAZ1, PinName FAZ2, PinName FAZ3, PinName FAZ4); // KONSTRUKTOR MOTORA
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();
void step2();
void step3();
void step4();
void step5();
void step6();
void step7();
void step8();
void motorStop();
float motorbrzina; // BRZINA STEP MOTORA
int i;
int trenutniKorak;
int maxKoraci;
Ticker steptick;
void zbrojiZaJedan();
bool busy;
};
#endif