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

Revision:
9:dc8f155b71c8
Parent:
8:e1da2ae62885
Child:
10:16ba52f8e025
--- a/globals.h	Mon Nov 16 22:20:11 2015 +0000
+++ b/globals.h	Mon Nov 16 23:44:44 2015 +0000
@@ -2,6 +2,7 @@
 #include "mbed.h"
 #include "MCP23017.h"
 
+
 #ifndef _globals_h_
 #define _globals_h_
 
@@ -21,13 +22,13 @@
 const char kCommandTerminator = ';';
 enum CommandTypeRaw { InvalidType = -1, Set = 0, Query = 1, Reply = 2 };
 
+const Block kDefaultHazBlock = Block(Block::Small);
+extern Block _HazBlock;
+
 enum Servos {Stopping = 1, Sorting = 2};
 enum StoppingServoPositions {Stop = 0, Go = 1};
 enum SortingServoPositions {NonHaz = 0, Haz = 1};
 
-const Block kDefaultHazBlock = Block(Block::Small);
-extern Block _HazBlock;
-
 void connectToPC(CommandTypeRaw typeRaw=Set);
 void disconnectToPC(CommandTypeRaw typeRaw=Set);
 void hazBlock(CommandTypeRaw typeRaw);