MDテスト用プログラム
Dependencies: FastPWM GMD_template_lib mbed
Fork of NewMD2 by
Revision 11:ebc451479857, committed 2016-08-25
- Comitter:
- inst
- Date:
- Thu Aug 25 00:36:12 2016 +0000
- Parent:
- 10:bf4b442a5449
- Child:
- 12:78fa1247aec4
- Commit message:
- Duty??????????????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Aug 25 00:01:17 2016 +0000 +++ b/main.cpp Thu Aug 25 00:36:12 2016 +0000 @@ -23,7 +23,7 @@ I2CSlave i2c(dp5, dp27); Timer timer; i2c.address(read_address()); - basic_motor_driver md(dp1, dp2, dp9); + GMD<5, 95> md(dp1, dp2, dp9); // Duty比の範囲を3%~95%に制限 //md.set_frequency_kHz(10.0f); もしスイッチング周波数を変更したかったらここを使う timer.start();