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, committed 2015-05-11
- Comitter:
- el13tjoc
- Date:
- Mon May 11 11:14:59 2015 +0000
- Parent:
- 0:39399720eaeb
- Commit message:
- Added Ethernet Powerdown;
Changed in this revision
diff -r 39399720eaeb -r 802453187acf PowerControl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PowerControl.lib Mon May 11 11:14:59 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/JST2011/code/PowerControl/#d0fa2aeb02a4
diff -r 39399720eaeb -r 802453187acf main.cpp --- 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);
diff -r 39399720eaeb -r 802453187acf main.h --- a/main.h Sun May 10 01:58:51 2015 +0000 +++ b/main.h Mon May 11 11:14:59 2015 +0000 @@ -15,6 +15,8 @@ #include <fstream> #include <sstream> #include <vector> +#include "PowerControl/PowerControl.h" +#include "PowerControl/EthernetPowerControl.h" #ifndef MAIN_H #define MAIN_H