This process may take tens of minutes, please be patient
3.3 Answering Y and hitting Enter when reboot prompted. Then renavigate to the oled directly by entering:
cd oled
3.4 Run the script to test the display
sudo python3 stats.py
OR
sudo python3 x729.py
Due to different hardware, you need to choose a different project file such as <code>x729.py</code> or <code>stats.py</code>
* <code>stats.py</code> is for most hardware such as [[NASPi CM4-M2]] or [[NASPi CM4-2.5]] or [[NASPi Gemini 2.5]] or [[X882]] shield.
* <code>x729.py</code> is for [[X729]] shield.
3.5 Run the script at Raspberry Pi boot
sudo crontab -e
3.6 Add a line at the end of the file that reads like this:
PS: we must toogle to the /home/pi/oled directory because .ttf files is required to locate in current directory,you can refer to x729.py source file, or you can also remove the 'cd /home/pi/oled &&' if you use the absolute path of the ttf file in the source code.
@reboot cd /home/pi/oled && python3 /home/pi/oled/yourd-evice-name.py &
[[File:X729-9.png|none]]
Save and exit. In nano editor, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.