- Add your user on
gpiogroup
sudo adduser <your user> gpio- Add permission to the library access the GPIO
cat >/etc/udev/rules.d/20-gpiomem.rules <<EOF
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660"
EOF- Copy
systemd/housear.serviceto/etc/systemd/system/housear.service - Run
sudo systemctl enable housear.serviceto enable the service - Run
sudo systemctl start housear.serviceto start the service - Run
sudo systemctl status housear.serviceto check the service status