kao yi
/
Bov3
wu
Fork of CCC by
Diff: motor_api.h
- Revision:
- 1:82bc25a7b68b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motor_api.h Tue Jun 03 15:53:55 2014 +0000 @@ -0,0 +1,33 @@ +#include "mbed.h" + + +class BX_motor{ + + public: + + BX_motor(char type); + + + + void rotate(float level); + + + + private: + + float Level; + + char Type; + + PwmOut* forward_A; + PwmOut* backward_A; + + PwmOut* forward_B; + PwmOut* backward_B; + + + DigitalOut* engine_enable; + + + + }; \ No newline at end of file