Stepper motor for grove
Diff: steppermotor.h
- Revision:
- 2:7b7c58bb9831
- Parent:
- 0:714a74d01dc3
--- a/steppermotor.h Fri Jan 18 08:07:36 2019 +0000 +++ b/steppermotor.h Thu Jan 24 12:55:28 2019 +0000 @@ -1,4 +1,13 @@ /** +* +* @file steppermotor.h +* @brief make grove steppermotor to turn via analog input. +* +* @author Nikolaj M. & Mathias R. +* +* @date 23/1/2019 +* +*-----EXAMPLE----- *#include "steppermotor.h" *steppermotor gate(2200, 200); * @@ -7,17 +16,20 @@ * gate.open(); * gate.close(); *} +*-----EXAMPLE----- **/ +//PROGRAM: StepperMotor #ifndef STEPPERMOTOR #define STEPPERMOTOR - - +///StepperMotor CLASS class steppermotor{ + ///INITIALIZE VARIABLES USED IN CLASS private: int step_speed; int numstep; + ///FUNCTIONS AND CONSTRUCTOR public: steppermotor(int stepSpeed, int numStep); void setStepSpeed(int stepSpeed);