Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 3:42a8da1837f7
- Parent:
- 2:43e1336c80e4
--- a/main.cpp Fri Dec 27 08:16:50 2019 +0000 +++ b/main.cpp Sat Dec 28 06:10:55 2019 +0000 @@ -1,36 +1,14 @@ #include"mbed.h" #include"Control.h" -#include"SBDBT.h" -#include"pinmap.h" class control ctrl; int main(void){ ctrl.setup(); -} //リフト上△、下×、回転〇 - - /* while(1){ + + while(1){ ctrl.run(); - - if(JoyStick_TRIANGLE) - { - pwm[4] = 100; //上 - }else if(JoyStick_CROSS) - { - pwm[4] = -100; //下 - }else if(JoyStick_CIRCLE) - { - pwm[5] = 100; //回転 - }else - { - mt5 = 0; - mt6 = 0; - } - } - - mt5.move(pwm[4]/130.0f); - mt6.move(pwm[5]/130.0f); -}*/ \ No newline at end of file +} \ No newline at end of file