Clark Lin
/
BX-car_s
QQQ
Fork of BX-car_s by
motor_api.h
- Committer:
- physicsgood
- Date:
- 2014-07-02
- Revision:
- 23:d6d4e8adf7fe
- Parent:
- 1:82bc25a7b68b
- Child:
- 10:9f0ce6ba7663
File content as of revision 23:d6d4e8adf7fe:
#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; };