モータを回すよ
Diff: motor.hpp
- Revision:
- 0:a773f39e5d7a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motor.hpp Wed Feb 02 11:25:12 2022 +0000 @@ -0,0 +1,13 @@ +#ifndef Motor_H +#define Motor_H +#include "mbed.h" + +class Motor{ +public: + Motor(PinName MP, PinName MM); + void out(double pwm); +private: + PwmOut mp; + PwmOut mm; +}; +#endif \ No newline at end of file