Yaroslav Barabanov
/
turret_2017
для управления турелью
sounds.cpp
- Committer:
- Yar
- Date:
- 2017-01-19
- Revision:
- 3:e47c0c98f515
- Parent:
- 0:690effcc5be0
File content as of revision 3:e47c0c98f515:
#include "sounds.hpp" #include "mbed.h" //#include "rtos.h" #include "main.hpp" #include "math.h" //PwmOut outSignal(PB_3); /* Ticker interrTimer; void playSnd(void) { } void playSoundShot(void) { my_pwm.period_us(62.5); my_pwm.write(0.5); } void initSound(void) { my_pwm.period_us(62.5); interrTimer.attach(&playSnd, 2.0); } */