![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
3rd year group project. Electronic and Electrical Engineering. Heriot-Watt University. This is the code for the mbed for the Automatic Little Object Organiser (ALOO).
Dependencies: MCP23017 TCS3472_I2C WattBob_TextLCD mbed
Diff: main.cpp
- Revision:
- 7:b6e31bfdb2af
- Parent:
- 6:98fe30430194
- Child:
- 8:e1da2ae62885
--- a/main.cpp Mon Nov 16 05:10:17 2015 +0000 +++ b/main.cpp Mon Nov 16 18:46:31 2015 +0000 @@ -32,7 +32,7 @@ Commander _commander = Commander(); Commander *commander = &_commander; FPGA _fpga = FPGA(); -FPGA *fpga = &fpga; +FPGA *fpga = &_fpga; extern Block _HazBlock; Block *HazBlock = &_HazBlock; @@ -41,7 +41,7 @@ void detectPC(); void initInternal(); -void initPort(int baudRate=kBaudRate); +void initPort(int baudRate=kDefaultBaudRate); int readSwitches(); void printPCDetectedText(); bool displayAboardDialog(); @@ -164,7 +164,7 @@ return; } -void initPort(int baudRate=kBaudRate) +void initPort(int baudRate) { myLED3 = 1; pc.baud(baudRate);