lib de ugokasu
Diff: lib.cpp
- Revision:
- 0:25ffb1df8a87
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib.cpp Thu Mar 04 09:48:23 2021 +0000 @@ -0,0 +1,14 @@ +#include "lib.h" + +Lib::Lib() +{ + md[0] = new KohiMD(PA_15); + md[1] = new KohiMD(PA_6); + md[2] = new KohiMD(PA_7); + md[3] = new KohiMD(PB_6); +} + +void Lib::go(double pwm) +{ + for(int i=0; i < 4; i++) md[i]->setSpeed(pwm); +} \ No newline at end of file