for sophomore

Fork of VNH5019 by aigamozu

VNH5019.h

Committer:
m5171135
Date:
2014-05-28
Revision:
1:656efbc86da4
Parent:
0:83e00dc8eb92
Child:
2:1bcdb655df71

File content as of revision 1:656efbc86da4:

#include "mbed.h"
#include <stdint.h>
#include <math.h>
#include <ctype.h>

#ifndef AIGAMOZU_VNH5019
#define AIGAMOZU_VNH5019

class VNH5019{
    
    public:
        VNH5019(PinName m1na,PinName m1nb,PinName m1pwm,PinName m2na,PinName m2nb,PinName m2pwm);   
        void changeSpeed(uint8_t L_state,uint8_t L_pwm,uint8_t R_state,uint8_t R_pwm);
    
    private:
        DigitalOut _m1na;
        DigitalOut _m1nb;
        PwmOut _m1pwm; 
        
        
        
        DigitalOut _m2na;
        DigitalOut _m2nb;
        PwmOut _m2pwm;
    };
    
#endif