Component Test's Software to work with "Universal Controller Box" - Software is an interpreter or "compiler" for programs to be done with a .txt file and read off of the SD Card
Dependencies: BridgeDriver FrontPanelButtons MCP23017 SDFileSystem TextLCD mbed
Diff: Initialization.cpp
- Revision:
- 4:86d0d04cc055
- Parent:
- 3:078e9a1e8be3
- Child:
- 5:e36e0538a903
--- a/Initialization.cpp Fri Sep 19 00:46:26 2014 +0000
+++ b/Initialization.cpp Fri Sep 19 01:54:00 2014 +0000
@@ -1,7 +1,7 @@
#include "Initialization.hpp"
#include "Motor.hpp"
#include "VoltageDriver.hpp"
-
+#include "PinIN.hpp"
/**********************************************************************************************************************************/
@@ -12,7 +12,7 @@
// ADD YOUR DEVICE NAME THE \\EXACT SAME WAY\\ AS THE ENUM NAME YOU DECLARED IN THE.hpp
// Must Declare names in reverse order for some reason...., it's the way they're indexed I believe
-const string DeviceNames[] = {"VOLTAGE_DRIVER", "MOTOR"};
+const string DeviceNames[] = {"MOTOR", "VOLTAGE_DRIVER", "PIN_IN"};
// ADD YOUR DEVICE TO THE LIST BELOW, CALLING YOUR DEVICE CLASS AS SHOWN
Device* Device::newDevice(int deviceFound, string _name, Line lineData){
@@ -20,6 +20,7 @@
switch (Device_Map[deviceFound]){
case MOTOR: return new Motor(lineData); break;
case VOLTAGE_DRIVER: return new VoltageDriver(lineData); break;
+ case PIN_IN: return new PinIN(lineData); break;
//********** ADD NEXT DEVICE ABOVE **************//
default: break;