A lot of that code is from the examples. The color shift stuff is from the text.py example.
Getting all those functions working took a little work though. The shutdown via the X button was one of the first things I wanted as I wanted to run mine headless with no keyboard or monitor attached.
You can show the temperature, humidity, and barometric pressure on it too if you add a BME680 or BME280 etc. I have working code for that.
1 Like