LED PWM lighting effects with sounds played from *.wav files using threads and the mbed RTOS. For more info see http://developer.mbed.org/users/4180_1/notebook/led-lighting-effects-for-modelers/ .

Dependencies:   USBHost mbed wave_player_appbd

Fork of AppBoard_Waveplayer by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Wed Mar 13 10:30:25 2013 +0000
Parent:
3:17ca010bda2e
Child:
5:fc580cab6a61
Commit message:
add comments

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Mar 13 10:28:43 2013 +0000
+++ b/main.cpp	Wed Mar 13 10:30:25 2013 +0000
@@ -15,8 +15,11 @@
             Thread::wait(500);
         }
         
+        // in a loop, append a file
+        // if the device is disconnected, we try to connect it again
         while(1) {
             
+            // append a file
             FILE * fp = fopen("/usb/test1.txt", "a");
         
             if (fp != NULL) {