Big Mouth Billy Bass player that takes raw wavefiles and decision list text files from an SD card

Dependencies:   SDFileSystem mbed BillyBass

Files at this revision

API Documentation at this revision

Comitter:
bikeNomad
Date:
Sat Jun 15 04:08:25 2013 +0000
Parent:
5:5b846ef42702
Child:
7:ce27f959813b
Commit message:
split files

Changed in this revision

billybass.hpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/billybass.hpp	Sat Jun 15 03:32:20 2013 +0000
+++ b/billybass.hpp	Sat Jun 15 04:08:25 2013 +0000
@@ -17,6 +17,7 @@
 const size_t BUFFER_SIZE = 512;
 const float SAMPLE_RATE_HZ = 8000.0;
 #define MAX_BASENAME_LENGTH 30
+#define MAX_FILENAME_LENGTH 60
 #define MAX_ACTION_LINE_LENGTH 100
 #define SERIAL_BAUD 115200
 
--- a/main.cpp	Sat Jun 15 03:32:20 2013 +0000
+++ b/main.cpp	Sat Jun 15 04:08:25 2013 +0000
@@ -38,6 +38,9 @@
 {
     SongPlayer player;
     pc.baud(SERIAL_BAUD);
+    redLED = 1.0;
+    greenLED = 1.0;
+    blueLED = 1.0;
 
     // read the directory
     DIR *bassDir = opendir(BASS_DIRECTORY);
@@ -45,7 +48,7 @@
     {
         while (dirent *dir = bassDir->readdir())
         {
-            char fn[ 60 ];
+            char fn[ MAX_FILENAME_LENGTH ];
             snprintf(fn, sizeof(fn), "%s/%s", BASS_DIRECTORY, dir->d_name);
             pc.printf(fn);
             // if this is a valid wave filename