Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord
    1. Home
    2. simon-savoy
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    simon-savoy

    @simon-savoy

    0
    Reputation
    134
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website plus.google.com/113659358236439637207

    simon-savoy Unfollow Follow

    Latest posts made by simon-savoy

    • RE: Pi Supply Switch

      Merci pour ta réponse, J'avais regardé le topic que tu as mis en lien mais avant de faire cette étape, je voulais voir que le script marche. A priori, "init.d python script" sur google donne pas mal de résultats pour l'étape suivante 🙂 Le code du script est le suivant:

      Import the modules to send commands to the system and access GPIO pins from subprocess import call import RPi.GPIO as gpio # Define a function to keep script running def loop(): raw_input() # Define a function to run when an interrupt is called def shutdown(pin): call('halt', shell=False) gpio.setmode(gpio.BOARD) # Set pin numbering to board numbering gpio.setup(7, gpio.IN) # Set up pin 7 as an input gpio.add_event_detect(7, gpio.RISING, callback=shutdown, bouncetime=200) # Set up an interrupt to look for button presses loop() # Run the loop function to keep script running

      posted in Recalbox Général
      simon-savoy
      simon-savoy
    • Pi Supply Switch

      Bonjour à tous, Je suis en train de configurer un recalbox. Pour l'instant, tout marche à merveille, à l'exception de mon power switch de chez Pi-Supply (https://www.pi-supply.com/product/pi-supply-raspberry-pi-power-switch/?v=1ee0bf89c5d1) Pour le faire fonctionner, je dois exécuter un script python qui me renvoie l'erreur suivante:

      Traceback (most recent call last): File "softshut.py", line 3, in <module> import RPi.GPIO as gpio ImportError: No module named RPi.GPIO

      <p class="p1">Comment faire pour installer le module RPi.GPIO sans passer par apt-get? D'avance merci! Simon</p>

      posted in Recalbox Général
      simon-savoy
      simon-savoy