For Rotaryencoder and Motor

Dependencies:   arrc_mbed

Dependents:  

Committer:
m2130
Date:
Sat Jul 16 06:38:44 2022 +0000
Revision:
0:b1487fd792c9
For Rotaryencoder and Motor;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
m2130 0:b1487fd792c9 1 #ifndef Motor_H
m2130 0:b1487fd792c9 2 #define Motor_H
m2130 0:b1487fd792c9 3 #include "mbed.h"
m2130 0:b1487fd792c9 4
m2130 0:b1487fd792c9 5 class Motor{
m2130 0:b1487fd792c9 6 public:
m2130 0:b1487fd792c9 7 Motor(PinName MP, PinName MM);
m2130 0:b1487fd792c9 8 void out(double pwm);
m2130 0:b1487fd792c9 9 private:
m2130 0:b1487fd792c9 10 PwmOut mp;
m2130 0:b1487fd792c9 11 PwmOut mm;
m2130 0:b1487fd792c9 12 };
m2130 0:b1487fd792c9 13 #endif