run a PiDuino code during gaming?
-
https://nvsl.github.io/PiDuino_Library/
the link above shows how to take a piece of code from arduino and run it on a Pi,
has anyone tried this in the background of Retropie and ES?
I would like to make some controllable LED lighting which on an Arduino I would like to control with some simple GPIO switches.
If I could build this into the Pi and not need an Arduino that would be great.I could of course have a seperate arduino, but I would also like the end project to be accesible from a controller to adjust the settings, is this even feasible? can you make a new section in the retropie setup which could in theory control the lighting from the controller?
any ideas?
-
I don't know about controlling it during gaming, but I know that with the
runcommand
hooks you can run processes when games start or end. That's how I'm telling my secondary TFT to display game art. -
hmmm, what I meant was more along the lines of whether or not a script would affect the emulation on the pi3 negativly.
i have been thinking about it, and I would only want to be able to turn the lights on and off via a push switch on the physical control panel. But it would be cool if there was a menu option to adjust brightness and colour of the lights.
-
Use python and it's native GPIO support :)
But thank you for the link... So Arduino programs can be ported to RPi.
You can usually use programms in the background to control switches even with ES running - because these programs are not "active" like in windows. They just wait for a trigger to act (=set interrupt)
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.