This project allows for the sending of MIDI messages, and setting of variable resistances, controlled by a distance sensor. MIDI input messages can also be used to set the variable resistance.

Dependencies:   N5110 PinDetect SRF08 USBDevice mbed PowerControl

Revision:
1:802453187acf
Parent:
0:39399720eaeb
--- a/main.cpp	Sun May 10 01:58:51 2015 +0000
+++ b/main.cpp	Mon May 11 11:14:59 2015 +0000
@@ -8,6 +8,9 @@
 
 int main() {
     
+    ///Powerdown the Ethernet peripheral
+    PHY_PowerDown();
+    
     ///Read parameter variables from VALS.csv
     readNumberValuesFromFile();
     ///Resise the smoothing values vector
@@ -25,7 +28,7 @@
     lcd.printString("EXPRESSIONATOR",0,1);
     lcd.printString("version 1.0",0,2);
     lcd.printString("Toby O'Connell",0,4);
-    wait(0.5);
+    wait(3);
     
     ///Setup callback function for range finder ticker 
     startRangingTicker.attach(&startRangingFlag, 0.1);