Updated procedure for moOde 9 series:
\\ Only for moOde 64bits
Replace this line: "ExecStart=/usr/sbin/lircd --nodaemon" by:
ExecStart=/usr/sbin/lircd --nodaemon -U /usr/lib/aarch64-linux-gnu/lirc/plugins
Only for moOde 64bits \\
Add at the end of # General settings section
dtparam=spi=on
dtoverlay=gpio-ir,gpio_pin=4
Download and install oled and lirc files:
If you use a user different from pi, you have to edit the service file:
and replace pi with your user in the ExecStart line.
Code:
sudo apt update
sudo apt-get -y install lirc, python3-luma.oled
\\ Only for moOde 64bits
Code:
sudo nano /lib/systemd/system/lircd.service
Replace this line: "ExecStart=/usr/sbin/lircd --nodaemon" by:
ExecStart=/usr/sbin/lircd --nodaemon -U /usr/lib/aarch64-linux-gnu/lirc/plugins
Code:
sudo systemctl daemon-reload
Only for moOde 64bits \\
Code:
sudo nano /boot/firmware/config.txt
Add at the end of # General settings section
dtparam=spi=on
dtoverlay=gpio-ir,gpio_pin=4
Download and install oled and lirc files:
Code:
wget -O raspdacmini_9.tar "https://drive.google.com/file/d/1jmKZinMUA6ZcWlPHou6WoqFUJht5BDfm/view?usp=sharing"
tar xvf raspdacmini_9.tar
sudo chmod 755 oled/raspdac_oled_main.py
sudo chmod 644 oled/oled.service
sudo cp oled/oled.service /etc/systemd/system/
sudo systemctl enable oled
sudo cp -r lirc/* /etc/lirc
rm -r lirc
rm raspdacmini_9.tar
sudo reboot
If you use a user different from pi, you have to edit the service file:
Code:
sudo nano /etc/systemd/system/oled.service
and replace pi with your user in the ExecStart line.