Camilo Ramirez
/
ENTREGA FINAL SISTEMAS EMBEBIDOS
SE AGREGÓ EL MOVIMIENTO EN LA MATRIZ DE TRIQUI SE AGREGO INTERRUPCION EN EL PROGRAMA
Step_Motor.h
- Committer:
- Camilokingxd
- Date:
- 2018-05-31
- Revision:
- 1:6fe876825b57
- Parent:
- 0:1b7dd931c028
File content as of revision 1:6fe876825b57:
#ifndef STEP_MOTOR_H #define STEP_MOTOR_H #include "mbed.h" class stepmotor { public: stepmotor(PinName in1, PinName in2, PinName in3, PinName in4, PinName in5,PinName in6, PinName in7, PinName in8); void step(uint32_t num_steps,uint8_t cw); void set_speed(int speed); uint32_t get_speed(); void Pause(); private: BusOut motor_out; uint32_t motorSpeed; int32_t nstep,nstep2; uint8_t mot2; void move(); }; #endif