Recalbox Forum

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

    GPIO rotary volume

    GamePad/GPIO/USB encoder
    gpio rotary volume
    6
    74
    32693
    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.
    • Substring
      Substring @dh04000 last edited by

      @dh04000 hi
      The easy way to start it is to touch ~/custom.sh && chmod u+x ~/custom.sh and then edit ~/custom.sh to start your python 🙂

      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é

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

        @Substring

        So lets assume I have no idea what to add to custom.sh to start up my script. How do I do that?

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

          @dh04000 just add what you'd usually tyoe on the command line 🙂 say python /path/to/script.py

          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é

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

            @Substring Oh, that seems simple. Thank you. 🙂

            I'l try it sometime this week/weekend and report how it went.

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

              @dh04000 yeah we made it simple.for users with minimum bash knowledge to add a custom startup script, hence the custom.sh in the home folder

              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
              • dh04000
                dh04000 last edited by

                @Substring @acris

                Complete success! The script starts up with the system now! Thanks for the help!

                1 Reply Last reply Reply Quote 0
                • acris
                  acris last edited by

                  @dh04000
                  good news , may be to make a complete tutorial 😄 ? please

                  dh04000 1 Reply Last reply Reply Quote 0
                  • dh04000
                    dh04000 @acris last edited by

                    @acris

                    Ok. What form should it be in? A google document, typed into this forum thread, a new forum thread, something else?

                    Also, how do I do those cool code windows?

                    1 Reply Last reply Reply Quote 0
                    • lackyluuk
                      lackyluuk Translator last edited by

                      @dh04000 @acris the articld could be written directly in the wiki?
                      https://github.com/recalbox/recalbox-os/wiki/Mini-How-To-(EN)

                      NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

                      1 Reply Last reply Reply Quote 0
                      • acris
                        acris last edited by

                        In the wiki 😄

                        dh04000 1 Reply Last reply Reply Quote 0
                        • dh04000
                          dh04000 @acris last edited by dh04000

                          @acris I'm still interested in writing a how-to use this script, but I don't know how to write to the wiki. Can I just send someone a google document with the how-to in it?

                          EDIT: Also @Substring once I wrote the how-to, would you mind checking it with your system since you also have a rotary encoder?

                          Substring 1 Reply Last reply Reply Quote 0
                          • acris
                            acris last edited by

                            No problem make google docs and a modo add your document on wiki.

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

                              @dh04000 mine is not plugged hahaha

                              the wiki syntax is farily simple, you even have a WYSIWYG bar to edit

                              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
                              • dh04000
                                dh04000 last edited by dh04000

                                Done: https://docs.google.com/document/d/15gvyNhxF_knimoVxYE0X3E4Fe1n_DSU06Wli_QtnwxE/pub

                                @Substring @acris @lackyluuk It needs some minor editing work for the wiki. I put comments in blue on what needs to be done.

                                1 Reply Last reply Reply Quote 0
                                • dh04000
                                  dh04000 last edited by

                                  I started editing the wiki, but I'm not good at it.... Also, please test those copy/paste instructions. I haven't had a chance to try it on my machine yet.

                                  1 Reply Last reply Reply Quote 0
                                  • dh04000
                                    dh04000 last edited by

                                    https://github.com/recalbox/recalbox-os/wiki/Rotary-Encoder-via-GPIO-(EN)

                                    1 Reply Last reply Reply Quote 0
                                    • acris
                                      acris last edited by

                                      Great !!! thanks a lot @dh04000

                                      dh04000 1 Reply Last reply Reply Quote 0
                                      • dh04000
                                        dh04000 @acris last edited by dh04000

                                        @acris It's not done. I don't know how to add the text box with the script. Also, I want to show how to increase the rate of volume change, and change min and max of the script in the tweaks section. Which I still have to write. Got to test it on my machine first. Also, I need someone to test my instructions and verify that it works as intended.

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

                                          @dh04000 you add code in 2 ways (wirks the same on the forum :

                                          • either as a "span" lile this between back quotes
                                          • either as a block
                                          Like this
                                          

                                          Between a pair of triple back quotes. But beware, you must start a new line after each triplet of back quotes. So my block above looks like :
                                          3 back quotes without spaces
                                          Like this
                                          3 back quotes without spaces
                                          Please note that on github you can specify which language is used in a code block. You just need to add the language name right after the opening triplet, say :
                                          3 back quotes python
                                          Like this
                                          3 back quotes

                                          The wiki langiage nme is known as markdown, and github has an advanced markdown for code

                                          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
                                          • dh04000
                                            dh04000 last edited by acris

                                            @Substring

                                            I'm trying to do this --> http://imgur.com/a/C7zRl

                                            Edit modo :

                                            test
                                            

                                            test

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

                                            Want to support us ?

                                            79
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com