ferney alberto beltran molina
/
00_LAB_STEPMOTOR
E
stepmotor.h
- Committer:
- fabeltranm
- Date:
- 2018-03-20
- Revision:
- 0:2890f9a09e85
- Child:
- 1:5dfedc044f7a
File content as of revision 0:2890f9a09e85:
/****************************************************************************** Desarrollado por ferney beltran fbeltran@ecci.edu.co libreria ejemplo para el motor paso a paso unipolar de 4 fases ******************************************************************************/ //***************************************************************************** #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