Run with:
$ python3 morse.py
This part of code prints the translated morse code text to the console. You can comment/delete this part if you don’t want it.
for ch in inp:
print(CODE[ch.upper()])
Change this number led=0
to set which LED on PiFace will light.