wave player pwm & covox

Dependencies:   wave_player_pwm_and_covox mbed USBHost

Files at this revision

API Documentation at this revision

Comitter:
vsolonar
Date:
Thu Jan 03 13:50:44 2019 +0000
Parent:
10:c3614ed19126
Commit message:
tested, done

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
pinout.h Show annotated file Show diff for this revision Revisions of this file
wave_player.lib Show diff for this revision Revisions of this file
wave_player_pwm_and_dac.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Dec 29 09:48:31 2018 +0000
+++ b/main.cpp	Thu Jan 03 13:50:44 2019 +0000
@@ -1,20 +1,24 @@
 /*
-Big green ugly test. Free for use bla bla bla. Do not eat.
+Big green ugly etc. Free for use bla bla bla. Do not eat.
 Tested on stm32f746zg
 
-Based on Vladimir Berzin SDFileSystem wave player 
-https://os.mbed.com/users/berzin11295/code/wav_player/
+Fast creepy transformation DAC_PWM WavePlayer SD_Card 
+to usb_flash_stick PWM_Covox WavePlayer
+
+Based on Lucy Lenhardt  wave_player_pwm_and_dac 
+https://os.mbed.com/users/lenhardt/code/wave_player_pwm_and_dac/
 */
 
 #include "mbed.h"
+//#include "pinout.h"
 #include "USBHostMSD.h"
 #include "wave_player.h"
 
-Serial pc(USBTX, USBRX, 115200); // tx, rx, baud rate to avoid terminal glitches
+Serial pc(USBTX, USBRX, 115200); // tx, rx, baud rate
 
 AnalogOut dac(PA_5);
-//DigitalOut enb(PA_12);
-wave_player player(&dac);
+PwmOut enb(PA_6);
+wave_player player(&dac, &enb);
 
 int main() {
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pinout.h	Thu Jan 03 13:50:44 2019 +0000
@@ -0,0 +1,10 @@
+DigitalOut R0(D0);
+DigitalOut R1(D1);
+DigitalOut R2(D2);
+DigitalOut R3(D3);
+DigitalOut R4(D4);
+DigitalOut R5(D5);
+DigitalOut R6(D6);
+DigitalOut R7(D7);
+DigitalOut R8(D8);
+DigitalOut R9(D9);
--- a/wave_player.lib	Sat Dec 29 09:48:31 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/ECE-2035-TA/code/wave_player/#910a7c3c9b24
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wave_player_pwm_and_dac.lib	Thu Jan 03 13:50:44 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/vsolonar/code/wave_player_pwm_and_covox/#97da0d3bf0cd