回避用のプログラムです。
Dependencies: mbed TB6612FNG US015
Diff: main.cpp
- Revision:
- 0:92fbe3130656
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 21 12:10:23 2021 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "Move.h" + +int main() +{ + int distance; + while(1) { + if(distance <= 200) { + MotorDriver(4, 0.5); + pc.printf("alart"); + } + else { + MotorDriver(2, 1); + pc.printf("Start Move"); + break; + } + } +} \ No newline at end of file