hello

Dependencies:   mbed-rtos mbed

Fork of BX-car by kao yi

motor_api.h

Committer:
TonyLin
Date:
2014-06-26
Revision:
10:9f0ce6ba7663
Parent:
1:82bc25a7b68b

File content as of revision 10:9f0ce6ba7663:

#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;
    };