![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Diff: serialCommunication.h
- Revision:
- 15:0c5f20e15b6a
- Parent:
- 12:814a8fdbb6f7
- Child:
- 18:12e2c82a5a6c
diff -r 31ba3e56c788 -r 0c5f20e15b6a serialCommunication.h --- a/serialCommunication.h Thu Nov 20 22:02:54 2014 +0000 +++ b/serialCommunication.h Fri Nov 21 22:14:21 2014 +0000 @@ -269,5 +269,28 @@ processMessage(c); //Do something, based on the character recieved. return true; } +/* Set the PC's laguage to whatever our language is +*/ +void sendLanguageCharacter(){ + switch(currentLanguage){ + case ENGLISH: + printLCD("Setting language to English"); + sendCharacter('Y'); + printLCD("Language set to English"); + break; + + case FRENCH: + printLCD("Setting language to French"); + sendCharacter('Z'); + printLCD("Language set to French"); + break; + + case GERMAN: + printLCD("Setting language to German"); + sendCharacter('!'); + printLCD("Language set to German"); + break; + } + }