RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    getting/sending active game data

    Scheduled Pinned Locked Moved Ideas and Development
    mqtt16x16 panelactive gamearduinosending data
    4 Posts 3 Posters 599 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.
    • H
      HugoS
      last edited by

      Hi im new to retropie and want to start to build a arcade machine.
      i have seen some nice 16x16 led panels and i was wondering if i can control them by retropie itself or by something like mqtt.
      The intention is for example to show a pacman video on a 16x16 led panel when pacman is played on the retropie.
      So i need to send the name of the active game to a arduino or raspberry pi somehow.
      Is there anyone who can help me or have an example on how to do this?

      Kind regards,
      Hugo

      F 1 Reply Last reply Reply Quote 0
      • F
        Folly @HugoS
        last edited by Folly

        @hugos

        I never done this myself.

        It looks like you need to create a few scripts for that in /opt/retropie/configs/all :

        • runcommand-onstart.sh
        • runcommand-onlaunch.sh
        • runcommand-onend.sh

        It is described in the docs for the runcommand.sh here :
        https://github.com/RetroPie/RetroPie-Docs/blob/master/docs/Runcommand.md

        The variables $1 $2 $3 $4 are passed to that script, if it exists.
        You can then make commands that will pass specific stuff to your arduino.

        This is a pixelcade example :
        https://retropie.org.uk/forum/topic/22195/pixelcade-an-rgb-led-matrix-marquee-that-changes-to-match-the-game

        H 1 Reply Last reply Reply Quote 0
        • H
          HugoS @Folly
          last edited by

          @folly
          Thanks that looks really good.
          I'm going to try it one of these days.

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by mitu

            You can send commands to your led panel also from EmulationStation's event system, which was expanded recently to support more entry points - https://retropie.org.uk/docs/EmulationStation/#scripting.
            There have been a few integration using this method:

            • https://retropie.org.uk/forum/topic/30528/
            • https://retropie.org.uk/forum/topic/22195/

            As long as you have the commands to control your panel, you can create scripts to send those commands based on EmulationStation's state and operations.

            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.