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

    LEDSpicer Trigger action help.

    Scheduled Pinned Locked Moved Help and Support
    ledspicerrpi4howto
    4 Posts 3 Posters 702 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
      hopwon
      last edited by

      hopwon 2 minutes ago
      Hi
      I am trying to configure the action that, once a game is selected the coin button flashes until pressed, then light up the P1/P2 button.
      I am still a bit of a noob to LEDSpicer. I am using craft profiles and my profile_arcade, and input xml files are included.
      Using inputseeker I have identified the keypress code I need to trigger.
      I feel I am missing something but do not know what.
      Basically I am using a fairly vanilla install of LEDSpicer with craftprofiles and this aspect works. i.e. the correct buttons light up for whichever ROM is loaded. My knowledge is falling down in enabling the triggers.

      Can some give me a copy of their working triggers xml etc. or walk me through some steps to troubleshoot?

      RP4, Retropie v4.8. LEDSpicer 0.5.6
      Ultimarc_IPAC Ultimate controller.

      profile_arcade.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <LEDSpicer
          version="1.0"
          type="Profile"
          backgroundColor="Off"
      
              <alwaysOnGroups>
                       <group name="HK" color="On" />
             </alwaysOnGroups>
             <inputs>
                      <input name="startgame"/>
             </inputs>
      </LEDSpicer>
      

      startgame.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <LEDSpicer
              version="1.0"
              type="Input"
              name="Actions"
              speed="Normal"
              linkedElements="P1_CREDIT,P1_START"
              listenEvents="usb-Ultimarc_I-PAC_Ultimate_I_O_4-event-kbd code"
      
      <!-- linking two elements together -->
          <map
              type="Element"
              target="P1_CREDIT"
              trigger="6"
              color="Off"
              filter="Normal"
          />
          <map
              type="Element"
              target="P1_START"
              trigger="2"
              color="Off"
              filter="Normal"
          />
      </LEDSpicer>
      
      MeduZaPaTM 1 Reply Last reply Reply Quote 0
      • MeduZaPaTM
        MeduZaPaT @hopwon
        last edited by MeduZaPaT

        @hopwon sorry the late response, I missed this message :(
        you are doing excellent actually!!

        So basically you are setting the color to white on the group HK, and then you want it to do Off blinking.
        The way you did it, should work.
        Here is my two players interaction doing exactly what you want:

        <?xml version="1.0" encoding="UTF-8"?>
        <LEDSpicer
        	version="1.0"
        	type="Input"
        	name="Actions"
        	speed="Normal"
        	linkedElements="P1_CREDIT,P1_START|P2_CREDIT,P2_START"      <<<<< PLAYER 1 and PLAYER 2
        	listenEvents="event5"                                       <<<< for you this is usb-Ultimarc_I-PAC_Ultimate_I_O_4-event-kbd code but check the log for errors.
        >
        	<map
        		type="Element"
        		target="P1_CREDIT"
        		trigger="2"
        		color="White"
        		filter="Normal"
        	/>
        	<map
        		type="Element"
        		target="P1_START"
        		trigger="6"
        		color="Blue"
        		filter="Normal"
        	/>
        	<map
        		type="Element"
        		target="P2_CREDIT"
        		trigger="3"
        		color="White"
        		filter="Normal"
        	/>
        	<map
        		type="Element"
        		target="P2_START"
        		trigger="9"
        		color="Red"
        		filter="Normal"
        	/>
            <map
                type="Element"
                target="CONTROL1"
                trigger="25"
                color="White"
                filter="Normal"
            />
        </LEDSpicer>
        

        I never did the opposite (color white then subtract Off, you can try color white with filter INVERSE! (filter="Invert")
        With a working system try this:

        emitter LoadProfileByEmulator tetris arcade
        

        This is just a test, will attempt to load the game Tetris and will display something like this:

        emitter LoadProfileByEmulator tetris arcade 
        Running: sed -n '/tetris/,$p' /home/meduza/workspaces/C++/LEDSpicer/deleteMe/share/ledspicer/controls.ini
        Reading color profile: sed -n '/tetris/,$p' /home/meduza/workspaces/C++/LEDSpicer/deleteMe/share/ledspicer/colors.ini
        Found color Red for button P1_COIN
        Found color Red for button P1_START
        Found color Red for button P1_BUTTON1
        Found color Black for controller P1_JOYSTICK1
        Found color Blue for button P2_COIN
        Found color Blue for button P2_START
        Found color Blue for button P2_BUTTON1
        Found color Black for controller P2_JOYSTICK1
        Running: rotator 2 1 '4' 1 1 '4' 
        Connecting to 127.0.0.1 port 16161
        Message sent successfully: arcade/tetrisP2_JOYSTICK1BlackP2_BUTTON1BlueP2_STARTBlueP2_COINBlueP1_JOYSTICK1BlackP1_BUTTON1RedP1_STARTRedP1_COINRedPLAYER1PLAYER22_COINS2_PLAYERSarcade11
        Closing network connection
        

        These are the extra profiles that will be loaded:

        • PLAYER1
        • PLAYER2
        • 2_COINS
        • 2_PLAYER

        Now... I have another recommendation for you, this is what I do:
        When you use crafted profiles, ledspicer also attempts to load profiles based on the number of players
        so you can do this (example for two players, but can be 4 or whatever you want:
        profile name: PLAYER1

        <?xml version="1.0" encoding="UTF-8"?>
        <LEDSpicer
        	version="1.0"
        	type="Profile"
        	backgroundColor="Black"
        >
        <!-- some stuff here for PLAYER 1 -->
            <inputs>
                <input name="P1_credit_interaction" />
            </inputs>
        </LEDSpicer>
        

        profile name: PLAYER2

        <?xml version="1.0" encoding="UTF-8"?>
        <LEDSpicer
        	version="1.0"
        	type="Profile"
        	backgroundColor="Black"
        >
        <!-- some stuff here  for PLAYER 2-->
            <inputs>
                <input name="P2_credit_interaction" />
            </inputs>
        </LEDSpicer>
        

        input plugin name: P1_credit_interaction

        <?xml version="1.0" encoding="UTF-8"?>
        <LEDSpicer
        	version="1.0"
        	type="Input"
        	name="Actions"
        	speed="Normal"
        	linkedElements="P1_CREDIT,P1_START"
        	listenEvents="event5"
        >
        	<map
        		type="Element"
        		target="P1_CREDIT"
        		trigger="2"
        		color="White"
        		filter="Normal"
        	/>
        	<map
        		type="Element"
        		target="P1_START"
        		trigger="6"
        		color="Blue"
        		filter="Normal"
        	/>
        </LEDSpicer>
        

        input plugin name: P2_credit_interaction

        <?xml version="1.0" encoding="UTF-8"?>
        <LEDSpicer
        	version="1.0"
        	type="Input"
        	name="Actions"
        	speed="Normal"
        	linkedElements="P2_CREDIT,P2_START"
        	listenEvents="event5"
        >
        	<map
        		type="Element"
        		target="P2_CREDIT"
        		trigger="3"
        		color="White"
        		filter="Normal"
        	/>
        	<map
        		type="Element"
        		target="P2_START"
        		trigger="9"
        		color="Red"
        		filter="Normal"
        	/>
        </LEDSpicer>
        

        I wrote this out of my head, please fix any error, and adapt the names to your system. :)

        LEDSpicer

        W 1 Reply Last reply Reply Quote 0
        • W
          wtstreetglow1 @MeduZaPaT
          last edited by

          @MeduZaPaT Thank you for responding here! And thank you for being so helpful to others. I know it takes time.

          This will also be very helpful to me when I get started on getting my PACLED64 going throughout the week this week and the weekend.

          I couldn't get RGB Commander going so I hope I have better luck with LEDSpicer.

          Thank you again for what you have created for everyone!!

          MeduZaPaTM 1 Reply Last reply Reply Quote 0
          • MeduZaPaTM
            MeduZaPaT @wtstreetglow1
            last edited by

            @wtstreetglow1 any update?

            LEDSpicer

            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.