PhotoStepper/PhotoStepper/Jogrunner.h
2022-02-12 01:03:46 +01:00

26 lines
445 B
C++

#ifndef Jogrunner_h
#define Jogrunner_h
#include "Arduino.h"
#include <LiquidCrystal.h>
#include <BasicStepperDriver.h>
class Jogrunner {
public:
Jogrunner(LiquidCrystal *lcd, BasicStepperDriver *stepper, int stepper_rpm);
void start();
void setSpeed(bool speed);
void stop();
void forward();
void backward();
private:
LiquidCrystal *_lcd;
BasicStepperDriver *_stepper;
int _stepper_rpm;
};
#endif