動作確認済み
Diff: GMD_impl.hpp
- Revision:
- 5:b3c1c5db8489
- Parent:
- 4:aa4eca6acb60
- Child:
- 9:0d8dbe2671cd
--- a/GMD_impl.hpp Wed Jul 13 09:02:24 2016 +0000 +++ b/GMD_impl.hpp Wed Aug 03 02:12:39 2016 +0000 @@ -5,13 +5,14 @@ const float GMD<MIN, MAX>::_frequency_to_tick_coeff = 3300.0f; template <size_t MIN, size_t MAX> -const uint32_t GMD<MIN, MAX>::_default_frequency_kHz = 50; +const uint32_t GMD<MIN, MAX>::_default_frequency_kHz = 20; template <size_t MIN, size_t MAX> GMD<MIN, MAX>::GMD(PinName p0, PinName p1, PinName shut_down) : _shut_down(shut_down, 1) { _pwm[0] = new FastPWM(p0); _pwm[1] = new FastPWM(p1); + _pwm[0]->write(0.0f); _pwm[1]->write(0.0f);