Tony Lin
/
BX-car
hello
Fork of BX-car by
Diff: motor_api.h
- Revision:
- 10:9f0ce6ba7663
- Parent:
- 1:82bc25a7b68b
--- a/motor_api.h Tue Jun 24 10:06:54 2014 +0000 +++ b/motor_api.h Thu Jun 26 14:29:53 2014 +0000 @@ -1,33 +1,16 @@ #include "mbed.h" - class BX_motor{ - public: - - BX_motor(char type); - - - - void rotate(float level); - - - + 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; - - - + 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