Execute Python Script at ROM Startup
-
Hi everyone.
So, I had an idea to display the console that is being currently emulated using an RGB LED or an LCD screen. In order to do that I would need to write a python script to control the GPIO pins.
This is my question: How do I execute the script every time a ROM gets loaded trough EmulationStation?
I was thinking maybe adding a new parameter to the "es_systems.cfg" file with the location of the script, but how would I execute it?
Thanks in advance for the help (;
-
As mentioned on Reddit, runcommand supports
user_script "runcommand-onstart.sh"
for exactly this. -
Thanks for your answer! I will have to try it out.
-
Once you get it working, please let us know how you did it. I was thinking of displaying the name of the game, or better yet, game art while the game is being played on a GPIO-driven screen.
-
I read about this one a few days ago... may be a place to start :)
edit: changed link to match markdown reference
-
Here's an awesome bartop with an animated secondary display that inspired me to look into this a few months ago. I just re-found the post on reddit
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.