The MBED firmware used on the Chipin sorter, developed over 12 weeks for a 3rd year university systems project. Chipin is a token sorter, it sorts tokens by colours and dispenses them to order through an online booking system and card reader. This program interfaces with an FPGA, PC and LCD screen to control the sorter. The sorter has an operation mode where it can process orders when a card is entered into the machine. There is also a maintenance mode where the device responds to maintenance instructions such as 'dispense all'. More information at http://www.ionsystems.uk/

Dependencies:   MCP23017 TCS3472_I2C WattBob_TextLCD mbed-rtos mbed

Revision:
16:498359d078dc
Parent:
15:0c5f20e15b6a
Child:
17:6a0bb0ad5bb4
--- a/main.cpp	Fri Nov 21 22:14:21 2014 +0000
+++ b/main.cpp	Sun Nov 23 18:45:52 2014 +0000
@@ -130,9 +130,10 @@
                 printLCD("Cleared values");
                 
             }else if(par_port->read_bit(10)){
-                log("set all stored values to 10");
-                writeFile(2,2,2);
-                redAmount = 2;greenAmount = 2;blueAmount = 2;
+                log("Increment all stored values by 2.");
+                redAmount += 2;greenAmount += 2;blueAmount += 2;
+                writeFile(redAmount,greenAmount,blueAmount);
+                
                 printLCD("set values to 2");
                 
             }