Wave playing code based of sravet/wave_player, but with mbed-os v5 support and additional PWM output
Dependents: waveplayer_mbedOS_v5_helloworld
Diff: wave_player.h
- Revision:
- 2:106018dd7db9
- Parent:
- 1:acc3e18e77ad
--- a/wave_player.h Tue Jan 18 03:57:27 2011 +0000 +++ b/wave_player.h Tue Oct 01 00:41:24 2019 +0000 @@ -37,7 +37,7 @@ * * @param _dac pointer to an AnalogOut object to which the samples are sent. */ -wave_player(AnalogOut *_dac); +wave_player(AnalogOut *_dac, PwmOut *_pwm); /** the player function. * @@ -62,6 +62,7 @@ void dac_out(void); int verbosity; AnalogOut *wave_DAC; +PwmOut *wave_PWM; Ticker tick; unsigned short DAC_fifo[256]; short DAC_wptr;