tarou yamada
/
YMD
Revision 3:43a3d01e6bff, committed 2015-11-13
- Comitter:
- inst
- Date:
- Fri Nov 13 08:19:21 2015 +0000
- Parent:
- 2:2367fed5ddcf
- Commit message:
Changed in this revision
YMotor.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2367fed5ddcf -r 43a3d01e6bff YMotor.lib --- a/YMotor.lib Thu Nov 12 08:03:51 2015 +0000 +++ b/YMotor.lib Fri Nov 13 08:19:21 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/inst/code/YMotor/#f30031faee81 +https://developer.mbed.org/users/inst/code/YMotor/#7b3ed02bf4cc
diff -r 2367fed5ddcf -r 43a3d01e6bff main.cpp --- a/main.cpp Thu Nov 12 08:03:51 2015 +0000 +++ b/main.cpp Fri Nov 13 08:19:21 2015 +0000 @@ -1,12 +1,8 @@ -#include "mbed.h" #include "YMotorDriver.h" -int main() { - YMotorDriver m; - - while( true ) { - m.update(); +int main(){ + while( true ){ + YMotorDriver::getInstance()->update(); } - return 0; } \ No newline at end of file