p

NK_motor.hpp

Committer:
hamohamo
Date:
2021-08-22
Revision:
0:5f9d8f2ef93e

File content as of revision 0:5f9d8f2ef93e:

#ifndef NK_motor
#define NK_motor

#include "mbed.h"

class Nk_motor{
public:
  Nk_motor(PinName plus,PinName minus,int period);
  ~Nk_motor();
  void SetLimit(double max,double min);
  void pwmout(double pwm);
private:
  double Max;
  double Min;
  PwmOut *Plus;
  PwmOut *Minus;
  double Pwm;
};

#endif