p

Revision:
0:5f9d8f2ef93e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/NK_motor.hpp	Sun Aug 22 13:01:50 2021 +0000
@@ -0,0 +1,20 @@
+#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