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

Committer:
IonSystems
Date:
Fri Nov 21 22:14:21 2014 +0000
Revision:
15:0c5f20e15b6a
Child:
23:f9e7e64784be
card object created and database object created for testing language emun created

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IonSystems 15:0c5f20e15b6a 1 enum Language {ENGLISH, FRENCH, GERMAN};
IonSystems 15:0c5f20e15b6a 2
IonSystems 15:0c5f20e15b6a 3 Language nextLanguage(Language oldLanguage){
IonSystems 15:0c5f20e15b6a 4 switch(oldLanguage){
IonSystems 15:0c5f20e15b6a 5 case ENGLISH: return FRENCH;
IonSystems 15:0c5f20e15b6a 6
IonSystems 15:0c5f20e15b6a 7 case FRENCH: return GERMAN;
IonSystems 15:0c5f20e15b6a 8
IonSystems 15:0c5f20e15b6a 9 case GERMAN: return ENGLISH;
IonSystems 15:0c5f20e15b6a 10 default: return oldLanguage;
IonSystems 15:0c5f20e15b6a 11 }
IonSystems 15:0c5f20e15b6a 12
IonSystems 15:0c5f20e15b6a 13
IonSystems 15:0c5f20e15b6a 14 }