To turn your PiFace CAD into a currency converter, first open a Terminal and type
git clone https://github.com/thomasmacpherson/currencyCAD.git
This will download the latest currencyCAD files into a folder called currencyCAD in your home directory
To run currency cad, in your Terminal window, move into the directory you cloned from github.
Now run the python file
Your PiFace CAD LCD screen will now ask whether to load presets, answer this question by flicking the rocker switch to the answer you want (YES or NO), and then pressing in the rocker switch. Presets are the list of paired currencies, pulled from the currencyPairs file.
AED. Press in the rocker switch and cycle to the currency you want to convert from, and press in to enter it. Repeat this for the currency you want to convert to, then move the cursor to the
→and press in the switch again. After a couple of seconds, the result will appear on the second line of the LCD. To save this currency pair to file, press in the second button from the left, the second line of the LCD will display
Pair saved. To request a new conversion, press the first button in the row of 5, to exit press the fifth button.
JPY>GBP. Press in the rocker switch and cycle through the preset currency pairs, press in the switch when you have found the one you want. Now flick the cursor over to the arrow
→and press in the switch again. After a couple of seconds, the result will appear on the second line of the LCD. To request a new conversion, press the first button in the row of 5, to exit press the fifth button.
If you want to remove our default preset currencies or change the order of currency pairs, then navigate to the currencyCAD folder you cloned from github and open the currencyPairs file with your favourite text editor, eg
Make the changes you want to the file and Save it.