Dependencies:   FastPWM GMD_template_lib mbed

Files at this revision

API Documentation at this revision

Comitter:
inst
Date:
Thu Aug 25 00:01:17 2016 +0000
Parent:
9:3a95d63381ec
Child:
11:ebc451479857
Commit message:
????????????????????

Changed in this revision

GMD.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
--- a/GMD.lib	Wed Aug 03 02:12:50 2016 +0000
+++ b/GMD.lib	Thu Aug 25 00:01:17 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/inst/code/GMD_template_lib/#b3c1c5db8489
+https://developer.mbed.org/users/inst/code/GMD_template_lib/#0d8dbe2671cd
--- a/main.cpp	Wed Aug 03 02:12:50 2016 +0000
+++ b/main.cpp	Thu Aug 25 00:01:17 2016 +0000
@@ -24,6 +24,7 @@
     Timer timer;
     i2c.address(read_address());
     basic_motor_driver md(dp1, dp2, dp9);
+    //md.set_frequency_kHz(10.0f);  もしスイッチング周波数を変更したかったらここを使う
     
     timer.start();
     
@@ -46,7 +47,7 @@
                 
             case I2CSlave::NoData:
                 if (timer.read_ms() > timeout_ms) {
-                    // I2Cの通信がタイムアウトしたならブレーキ
+                    // I2Cの通信がタイムアウトしたなら開放
                     md.release();
                 }
                 break;