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

    how would i run a python script in the background?

    Scheduled Pinned Locked Moved Help and Support
    scriptraspberrypi 0 wpythonemulationarduino
    5 Posts 2 Posters 669 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.
    • A
      awesomeg759
      last edited by

      am planning on making some kind of portable flight console thing with a game called elite frontier 2. i already made the flight setup with a joystick and throttle but its all with an arduino uno so i would have to use python to interface with the arduino uno and then type keys using the keyboard library with pyserial in python. the device am using is the raspberry pi zero w 1 to run elite frontier 2.
      and no i do not have pins on my zero nor can i solder on some since i dont have a setup for soldering.

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

        Look at this pdf guide and choose one of the methods that are appropriate for your script. If in doubt, choose method 4 (using systemd).

        A 1 Reply Last reply Reply Quote 0
        • A
          awesomeg759 @mitu
          last edited by

          @mitu ok cool, so i use .service to run a python script but is python 3 automatically installed in retropie? and if not how would i install it?

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

            RetroPie is not an OS, but a collection of scripts. For the Pi platform, it uses RaspiOS underneath, so every software available/working in RaspiOS should work/be installable on the RetroPie image.

            And yes, python3 is included in the RetroPie image, though depending on your script you may need to install additional Python modules.

            A 1 Reply Last reply Reply Quote 0
            • A
              awesomeg759 @mitu
              last edited by

              @mitu alright thanks man! this will help me so much on this project!

              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.