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 Dec 05 09:53:04 2014 +0000
Revision:
28:bdf2bf56f97b
Parent:
27:47a7bc902587
Commened main

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IonSystems 26:23ee3ea4ac7c 1 /* An enumerated type representing the three possible languages.
IonSystems 26:23ee3ea4ac7c 2 */
IonSystems 27:47a7bc902587 3 enum Language { ENGLISH,
IonSystems 27:47a7bc902587 4 FRENCH,
IonSystems 27:47a7bc902587 5 GERMAN};
IonSystems 27:47a7bc902587 6
IonSystems 27:47a7bc902587 7 /* Language nextLanguage(Language oldLanguage)
IonSystems 27:47a7bc902587 8 * Return the next language in the above sequence.
IonSystems 27:47a7bc902587 9 */
IonSystems 23:f9e7e64784be 10 Language nextLanguage(Language oldLanguage)
IonSystems 23:f9e7e64784be 11 {
IonSystems 23:f9e7e64784be 12 switch(oldLanguage) {
IonSystems 23:f9e7e64784be 13 case ENGLISH:
IonSystems 23:f9e7e64784be 14 return FRENCH;
IonSystems 23:f9e7e64784be 15 case FRENCH:
IonSystems 23:f9e7e64784be 16 return GERMAN;
IonSystems 23:f9e7e64784be 17 case GERMAN:
IonSystems 23:f9e7e64784be 18 return ENGLISH;
IonSystems 23:f9e7e64784be 19 default:
IonSystems 23:f9e7e64784be 20 return oldLanguage;
IonSystems 23:f9e7e64784be 21 }
IonSystems 23:f9e7e64784be 22 }