for sophomore
Fork of VNH5019 by
Diff: VNH5019.h
- Revision:
- 0:83e00dc8eb92
- Child:
- 1:656efbc86da4
diff -r 000000000000 -r 83e00dc8eb92 VNH5019.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/VNH5019.h Wed May 21 01:22:46 2014 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include <stdint.h> +#include <math.h> +#include <ctype.h> + +#ifndef AIGAMOZU_VNH5019 +#define AIGAMOZU_VNH5019 + +class VNH5019{ + + public: + VNH5019(PinName m1na,PinName m1nb,PinName m1pwm,PinName m2na,PinName m2nb,PinName m2pwm); + void changeSpeed(uint8_t L_state,uint8_t L_pwm,uint8_t R_state,uint8_t R_pwm); + + private: + DigitalOut _m1na; + DigitalOut _m1nb; + PwmOut _m1pwm; + + DigitalOut _m2na; + DigitalOut _m2nb; + PwmOut _m2pwm; + }; + +#endif \ No newline at end of file