RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    run a PiDuino code during gaming?

    Scheduled Pinned Locked Moved Help and Support
    piduinoarduinolighting
    4 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • spruce_m00seS
      spruce_m00se
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • obsidianspiderO
        obsidianspider
        last edited by obsidianspider

        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.

        📷 @obsidianspider

        1 Reply Last reply Reply Quote 0
        • spruce_m00seS
          spruce_m00se
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • cyperghostC
            cyperghost
            last edited by cyperghost

            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)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.