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

C/C++ • daemon GPIO access

$
0
0
I have a c++ app that uses gpio switch to start/stop its function. I am doing this by reading simulated keystrokes thru dtoverlay=gpio-key setup.

I would like to have a daemon (systemctl) process that does the same thing. I would like to share the same gpio pin for the switch and have the dtoverlay=gpio-key setup in place for the foreground process.

Any ideas or examples on how to do this are appreciated.

Statistics: Posted by wkeeling — Fri Feb 13, 2026 10:00 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles