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:2c44ef989724
- Parent:
- 2:7ca124b4dbcb
diff -r 7ca124b4dbcb -r 2c44ef989724 main.cpp
--- a/main.cpp Mon Jul 22 10:28:52 2019 +0000
+++ b/main.cpp Wed Oct 13 10:45:51 2021 +0000
@@ -3,8 +3,8 @@
//生成時のピン割当はマイコンピン割当通りに配置すること。
#include "mbed.h"
#include "TB6612.h"
-TB6612 motor_a(D2,D7,D6); //モータA制御用(pwma,ain1,ain2)
-TB6612 motor_b(D10,D8,D9); //モータB制御用(pwmb,bin1,bin2)
+TB6612 motor_a(D10,D6,D7); //モータA制御用(pwma,ain1,ain2)
+TB6612 motor_b(D11,D8,D9); //モータB制御用(pwmb,bin1,bin2)
Serial pc(USBTX,USBRX); //USBシリアル通信用
int main() {