Hello, PlatformIO!

This commit is contained in:
2019-05-08 22:24:17 +03:00
parent 9fb6f60b36
commit d2d0ed0c3c
12 changed files with 398 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#ifndef STEPPER_H
#define STEPPER_H
class Stepper {
private:
unsigned int stepsPerRevolution;
int pin1;
int pin2;
int pin3;
int pin4;
int speedDelay;
void clockwise();
void counterClockwise();
public:
Stepper(int pin1, int pin2, int pin3, int pin4, int stepsPerRevolution, int rpm);
~Stepper();
void step(int steps);
void move(float degrees);
};
#endif