So the Sense HAT library is provided with the Latin-1 character set built in, but it does give the user the option to provide their own text assets. If you look here
you'll see the files named sense_hat_text.txt
. The text file is used to index the order
in which the characters appear in the png. Also the png is rotated 90 degrees to that every character is made up of continuous pixels.
If you were to re-create both of these files, and change their names to say sense_hat_greek.txt
and put them into /usr/lib/pythonXXX/dist-packages/sense_hat on your system, you would be able to load them like this:
Code: Select all
from sense_hat import SenseHat
sense = SenseHat(text_assets = "sense_hat_greek")
However, because of how python deals with looping over strings you may run into issues with this part
of the library where it expects one text character to equate to one png character. I believe a lot of Unicode characters are two bytes long, whereas everything in Latin-1 is one byte long.