![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Dependencies: FastPWM GMD_template_lib mbed
Diff: main.cpp
- Revision:
- 11:ebc451479857
- Parent:
- 10:bf4b442a5449
- Child:
- 12:78fa1247aec4
--- 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();