Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions C/ssd1306.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Install:
#
# sudo systemctl link /home/pi/U6143_ssd1306/C/ssd1306.service
# sudo systemctl enable ssd1306
# sudo systemctl start ssd1306

[Unit]
Description=UCTRONICS ssd1306 OLED display
After=network.target

[Service]
Type=simple
ExecStart=/home/pi/U6143_ssd1306/C/display

[Install]
WantedBy=multi-user.target
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ sudo ./display &
```
- reboot your system

## Add automatic systemd start to systemd
```bash
sudo systemctl link /home/pi/U6143_ssd1306/C/ssd1306.service
sudo systemctl enable ssd1306.service
sudo systemctl start ssd1306.service
```

## For older 0.91 inch lcd without mcu
- For the older version lcd without mcu controller, you can use python demo
- Install the dependent library files
Expand All @@ -49,13 +56,3 @@ sudo apt-get install python3-pil
cd /home/pi/U6143_ssd1306/python
sudo python3 ssd1306_stats.py
```










16 changes: 16 additions & 0 deletions python/ssd1306_stats.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Install:
#
# sudo systemctl link /home/pi/U6143_ssd1306/python/ssd1306_stats.service
# sudo systemctl enable ssd1306_stats
# sudo systemctl start ssd1306_stats

[Unit]
Description=UCTRONICS ssd1306 OLED display
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/pi/U6143_ssd1306/python/ssd1306_stats.py

[Install]
WantedBy=multi-user.target