giuliomoro the formatting (careful how you use your ``)
i'll get it right one day - for now i'm just copy/pasting, which may go wrong here and there. my apologies.
let me try to get this. when you say a single service running a single script, does that mean i no longer need to create another service file to have my current sketch running in the background, as this one takes care of that as well?
so say i were to create a single script. that still means
sudo vi /usr/bin/enable-display-pins.sh
?
after which i get the --INSERT-- mode, and enter
#!/bin/bash
config-pin p2.5 output
config-pin p2.7 output
/root/Bela/projects/1309_Display/1309_Display
(hopefully correcting the pins and modes) to create the actual script.
then save the file? esc +:wq
?
then create the service file to actually run the script at boot?
sudo vi /lib/systemd/system/enable-display-pins.service
entering
[Unit]
Description=Enable Display SDD1309 pins
After=generic-board-startup.service
[Service]
Type=simple
ExecStart=/usr/bin/enable-display-pins.sh
[Install]
WantedBy=multi-user.target
Enable the new systemd service
sudo systemctl daemon-reload
sudo systemctl enable enable-display-pins.service
.
does that look at all okay?