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:
14:cf2f255b5560
Parent:
10:16ba52f8e025
Child:
32:9a4046224b11
diff -r 4f24da6e2f8e -r cf2f255b5560 fpga.h
--- a/fpga.h	Sat Nov 21 20:24:08 2015 +0000
+++ b/fpga.h	Sun Nov 22 17:53:36 2015 +0000
@@ -6,6 +6,8 @@
 #ifndef _fpag_h_
 #define _fpga_h_
 
+enum BeamNumber { Top = 2, Bottom = 1 };
+
 class FPGA{
 public:
 	FPGA();
@@ -25,8 +27,8 @@
 	void resetSortingServo();
 	void resetAllServos();
 
-		virtual ~FPGA();
-private:
+	virtual ~FPGA();
+
 	int getBeamValue(int beamNumber);
 	void moveServo(int servoNumber, int position);
 };