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:
- 9:5a0c4c6e39c7
- Parent:
- 6:d1594fd2ec5a
- Child:
- 11:bc9cd2869f95
--- a/Initialization.cpp Wed Sep 24 01:46:02 2014 +0000 +++ b/Initialization.cpp Wed Sep 24 22:23:00 2014 +0000 @@ -66,9 +66,19 @@ wait(.6); lcd.cls(); //clear the display lcd.setAddress(0,0); - lcd.printf("LCD Initialized"); + lcd.printf("Initializing..."); } +void ErrorOut(string message, int lineNumber){ + + lcd.cls(); //clear the display + + lcd.setAddress(0,0); + lcd.printf("Error: %s", message); + + lcd.setAddress(0,3); + lcd.printf("Line Number: %d", lineNumber); +} /******************************************************************************/ /*** <Parent Device Class Initializations> ***/ @@ -77,4 +87,4 @@ int numDevices = sizeof(DeviceNames)/sizeof(DeviceNames[0]); int currNumDevices = 0; -vector<Device*> devices; \ No newline at end of file +vector<Device*> devices; //create a vector to hold all of the devices \ No newline at end of file