123

Dependencies:   mbed

Fork of Boboobooo by Clark Lin

motor_api.h

Committer:
even
Date:
2014-07-10
Revision:
12:a3cee7619b77
Parent:
1:82bc25a7b68b

File content as of revision 12:a3cee7619b77:

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

    
    
    };