Here are the steps I used to get it up and running (everything works!)
Step 0: Make sure you only log into the DietPi using a non-Root account (eg. dietpi:dietpi)
Step 1: Make sure the following components have been installed using the DietPi Software configuration tool.
<Software Additional> => 130 Python Pip
<Software Additional> => 16 Build Essentials
<Software Additional> => 17 Git
Step 2: Execute the following code
Code: Select all
sudo apt-get install libfreetype6-dev libjpeg-dev
Code: Select all
sudo pip install --upgrade ssd1306
Code: Select all
git clone https://github.com/friendlyarm/NanoHatOLED.git && cd NanoHatOLED && sudo -H ./install.sh
HOWEVER ...
After running mine 24x7 for about a month I discovered that my little OLED screen had developed a nasty case of "screen burn" :shock:
This inspired me to do a little hacking and make a few fixes.
Executing the following code will do two things:
1. Replace the default script with one that turns off the screen after five(ish) minutes (as soon as you click a button it will turn back on for another five minutes).
2. Replaces the boot image with a muuuch better one. <cough>dietpi logo</cough>
Code: Select all
wget -O NanoHatOLED.zip http://dietpi.com/phpbb/download/file.php?id=1033 && sudo unzip -o NanoHatOLED.zip -d NanoHatOLED/BakeBit/Software/Python