mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-27 01:07:49 +01:00
Hello, PlatformIO!
This commit is contained in:
22
Firmware/EggbotWireless/include/Stepper.h
Normal file
22
Firmware/EggbotWireless/include/Stepper.h
Normal 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
|
||||
Reference in New Issue
Block a user