![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pausa
Fork of primercorte by
stepmotor.h
- Committer:
- nicolasrojas
- Date:
- 2018-06-06
- Revision:
- 5:9187685429b3
- Parent:
- 0:0119b611fc51
File content as of revision 5:9187685429b3:
#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,bool cw); void set_speed(int speed); uint32_t get_speed(); private: BusOut motor_out; uint32_t motorSpeed; int8_t nstep; void move(); }; #endif