![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Seguilinea
Dependencies: HCSR04 X_NUCLEO_IHM12A1 mbed
Diff: PLT_DCmotorShield_IHM12A1/MotorShieldIHM12A1.h
- Revision:
- 0:9bd4730782f9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PLT_DCmotorShield_IHM12A1/MotorShieldIHM12A1.h Sat Feb 17 11:05:43 2018 +0000 @@ -0,0 +1,28 @@ +/**************************************************** +* FAST PROTOTYPING WITH NUCLEO * +* Author: Francesco Caiazzo * +* Organization: Perlatecnica no-profit organization * +*****************************************************/ + + +#ifndef MOTOR_SHIELDIHM12A1_H +#define MOTOR_SHIELDIHM12A1_H + +#include "stspin240_250_class.h" + +class MotorShieldIHM12A1 { + +public: + +// Crea un'istanza di MotorShield + MotorShieldIHM12A1(); + void motorSpeed(unsigned int ID, int8_t speed); + void motorStop(unsigned int ID); + void motorReset(void); + void turn(int8_t direction, int8_t speed); + +private: + Stspin240_250_Init_t initDeviceParameters; + STSPIN240_250 *motor; +}; +#endif \ No newline at end of file