Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    LED Turn on/off when I press a button (GPIO14 )

    GamePad/GPIO/USB encoder
    led turn onoff press button
    3
    3
    1052
    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.
    • erniman
      erniman last edited by

      Hello, I'm configuring my GPIO controller on my Arcade cabinet for 2 players. I use all the buttons for player 1 and 2. Yesterday I add the LED to indicate when the system is on or off.
      I've connected the LED (+) to GPIO14 as is explained here:
      https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)

      The problem is that I need also to connect on GPIO14 a button for player 1. so, when I press the button on player 1 the led turn off. When I release it, the led back to on.

      Somebody has a workaround for this?
      Thanks.

      Substring 1 Reply Last reply Reply Quote 0
      • Substring
        Substring @erniman last edited by

        @erniman no you can't add a led when using the gpio driver unless you use a.specific version of the driver where you can reconfigure ports (it should ve available in 2 releases)

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 0
        • Dragu
          Dragu Banned last edited by Dragu

          @erniman
          If you want just look if the system is up or down, you can easly and just connect it (with resistor =>1KOhm) to the power pin of one USB plug. Because PI switch off power on USB if the system is down. Even when power subsist on the board.

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

          Want to support us ?

          100
          Online

          99.2k
          Users

          28.1k
          Topics

          187.1k
          Posts

          Copyright © 2021 recalbox.com