Sets motor currents based on input motorvalue

motorConfig.h

Committer:
tvlogman
Date:
2017-10-23
Revision:
2:91ea2963629a
Parent:
1:84cb991c4d28

File content as of revision 2:91ea2963629a:

#ifndef MOTORCONFIG_H
#define MOTORCONFIG_H

#include "mbed.h"
#include "FastPWM.h"

class motorConfig {
public:
    motorConfig(PinName, PinName);
    void setMotor(float motorValue);
    void turnMotorOn();
    void kill();
    
private:    
    DigitalOut directionPin; //D4
    PwmOut pwmPin; //D5
    };
#endif