adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
443 stars 240 forks source link

GPIO input for player and device command #209

Closed anoril1979 closed 7 months ago

anoril1979 commented 7 months ago

It is possible to control the RaspPi with keyboard, like 'p' to shutdown, and have GPIO interrupts to change video played.

Is it possible to add RaspPi commands (shutdown) to GPIO interrupts ?

Regards,

tofuSCHNITZEL commented 7 months ago

yes did you even read the readme? https://github.com/adafruit/pi_video_looper#control

you can edit the code to make the gpio also run the shutdown action.

anoril1979 commented 7 months ago

Hi! Great!

Sorry, I'm new to RaspberryPi programming, and yes: I read the readme which I found not really clear on this point (it literally says you have actions on keys, and GPIO Can be mapped to filenames, file indexes or relative jumps :) )

Many thanks for your time replying my request and for this great piece of work!

And I wish you the best for the New Year! Regards