esta librería sirve para el control del motor paso a paso.
Step_Motor.h
- Committer:
- Stevenor1997
- Date:
- 2018-03-27
- Revision:
- 0:ea300190c1f5
- Child:
- 2:7e471c76cd6b
File content as of revision 0:ea300190c1f5:
#ifndef STEP_MOTOR_H #define STEP_MOTOR_H #include "mbed.h" class stepmotor { public: stepmotor(PinName in1, PinName in2, PinName in3, PinName in4); void step(uint32_t num_steps,uint8_t cw); void set_speed(int speed); uint32_t get_speed(); private: BusOut motor_out; uint32_t motorSpeed; int8_t nstep; void move(); }; #endif