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: fpga.cpp
- Revision:
- 21:60c4fe94d79c
- Parent:
- 10:16ba52f8e025
- Child:
- 22:993821a4c396
--- a/fpga.cpp Tue Nov 24 20:53:51 2015 +0000 +++ b/fpga.cpp Wed Nov 25 19:21:12 2015 +0000 @@ -185,7 +185,7 @@ CLK(); //Number finish bbOut.write(0); }else if (position == NonHaz){ - // NON-HAZ = 63 + // NON-HAZ = 73 bbRst.write(0); CLK(); bbRst.write(1); @@ -200,16 +200,16 @@ CLK(); bbOut.write(0); CLK(); - bbOut.write(0); + bbOut.write(1); + CLK(); + bbOut.write(1); + CLK(); + bbOut.write(1); CLK(); bbOut.write(1); CLK(); bbOut.write(0); CLK(); - bbOut.write(0); - CLK(); - bbOut.write(1); - CLK(); bbOut.write(0); CLK(); //Position finish bbOut.write(0);