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.
main.cpp
- Committer:
- OishiHinata
- Date:
- 2019-12-27
- Revision:
- 2:43e1336c80e4
- Parent:
- 1:39ada37dfdbe
- Child:
- 3:42a8da1837f7
File content as of revision 2:43e1336c80e4:
#include"mbed.h" #include"Control.h" #include"SBDBT.h" #include"pinmap.h" class control ctrl; int main(void){ ctrl.setup(); } //リフト上△、下×、回転〇 /* 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); }*/