Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3546

Raspberry Pi OS • Yahboom CubePi5 OLED Service

$
0
0
So I'm at a loss with the Yahboom CubePi5 cases OLED Display. Absolutely everything works except the startup service. I've tried everything I can think of with no luck because the OLED always remains black on a boot or reboot. If I run the

Code:

python3 /home/technogeek/PiDrivers/OLED/oled.py
command the OLED comes up properly but I can't get the service to work and Yahboom was no help whatsoever. Here's what I get when I run

Code:

systemctl status yahboom_oled.service
or

Code:

sudo systemctl status yahboom_oled.service

Code:

○ yahboom_oled.service - yahboom_oled start service     Loaded: loaded (/etc/systemd/system/yahboom_oled.service; enabled; preset: enabled)     Active: inactive (dead)
These do no work either even after

Code:

systemctl daemon-reload
or

Code:

sudo systemctl daemon-reload

Code:

systemctl start yahboom_oled.servicesudo systemctl start yahboom_oled.servicesystemctl restart yahboom_oled.servicesudo systemctl restart yahboom_oled.service
I always have to ctrl c out and the display remains black.

Things I've tried plus many more.
User=root
WorkingDirectory=/home/technogeek/PiDrivers/OLED

The following line with the quotes left in.
ExecStart=/bin/sh -c "python3 /home/technogeek/PiDrivers/OLED/oled.py"

Here's what I have in the .service file that is just a modified version of what they supply.

Code:

[Unit]Description=yahboom_oled start serviceAfter=multi-user.target[Service]Type=idleUser=technogeekExecStart=/bin/sh -c python3 /home/technogeek/PiDrivers/OLED/oled.pyWorkingDirectory=/home/technogeek[Install]WantedBy=multi-user.target
I would also like to setup the RGB LED's to default to off but I have no idea how to add this to this service file or build another service file to accomplish this. Below is what I do to turn them off after any cold boot but it would be nice if this happened automatically.

Code:

python3>>> from CubeRaspberryLib import CubeRaspberry>>> bot = CubeRaspberry(i2c_bus=1)>>> bot.set_RGB_Effect(0)>>> exit()
I'm still really a newbe and a lot of this still confuses me.

Thanks in advance, any help is very much appreciated.

Statistics: Posted by technogeekca — Tue Sep 09, 2025 7:21 am



Viewing all articles
Browse latest Browse all 3546

Trending Articles