MP3-capable chair with sensor-embedded weight scale.

Dependencies:   ACM1602 SDFileSystem VS1053 mbed ClockControl PowerControl

Revision:
2:844bedc9dc63
Parent:
1:ef257d63d970
Child:
3:64f0ba828a2e
--- a/main.cpp	Sat Mar 29 16:14:11 2014 +0000
+++ b/main.cpp	Sat Mar 29 16:19:42 2014 +0000
@@ -9,7 +9,7 @@
 #include "EthernetPowerControl.h"
 #include "PowerControl.h"
 
-// Pin settings for LPC1768(LPCXpresso)
+// Pin settings for mbed LPC1768
 SDFileSystem sd(/*MOSI*/ p11, /*MISO*/ p12, /*SCK*/ p13, /*CS*/ p21, /*Mountpoint*/ "sd");
 VS1053       mp3(/*MOSI*/ p11, /*MISO*/ p12, /*SCK*/ p13,
                  /*CS*/ p22, /*BSYNC*/ p23, /*DREQ*/ p24, /*RST*/ p25, /*SPI freq.*/ 4000000);
@@ -24,6 +24,7 @@
 DigitalIn    test1(p19);
 DigitalIn    test0(p20);
 DigitalIn    inputSelector(p8);
+// Set unused pins to input when using the LPCXpresso board
 BusIn        __dummy(xp21, xp22, xp23, xp24, xp49, xp50, xp51, xp52, xp53);
 Ticker       tic;
 bool         inputFrom;
@@ -41,7 +42,7 @@
 
 /** Setup and initializations */
 void setup(void) {
-    // Reduce system clock frequency
+    // Reduce system clock frequency to 48 MHz
     setSystemFrequency(0x3, 0x1, 6, 1);
     
     // Power down Ethernet PHY
@@ -237,7 +238,6 @@
         if (request == STOP_REQUEST) {
             // Clear stop request
             request = NONE;
-            
             // Power supply off
             audioPower = 0;
         }