You can read/write the gpio sys node - /sys/class/gpio/ in your application
e.g.
create the gpio node
for exmaple,
echo 345 >/sys/class/gpio/export
echo in >/sys/class/gpio/gpio345/direction
or
export the gpio from kernel space with gpio direction
read the gpio value
cat /sys/class/gpio/gpio345/value
I’m trying to make an alarm, when an object has detected without moving for 30 seconds an alarm will sound.
I’m trying to plan for a situation when something is falsely detected (for example a motorbike is wrongly detected as a bicycle). In this situation I would like to cancel/reset the app without closing and restarting it.
I will also try to record this so that I can see when things are wrongly detected. I’m aware the detection will immediately start again but this will restart the 30 second counter
Hopefully that makes more sense?
Thanks Chris
PS. is there a list of which keys have functions in deepstream, for example q for quit?