Python bloqué après l'envoi de la commande "GPIO.setup (7, GPIO.OUT)" !!!
Étape d'action:
pi@rp:~$ python3
Python 3.4.3 (default, Mar 26 2015, 23:09:09)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup( 7, GPIO.OUT)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: No access to /dev/mem. Try running as root!
exit()
Maintenant avec sudo:
pi@rp:~$ sudo python3
Python 3.4.3 (default, Mar 26 2015, 23:09:09)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup( 7, GPIO.OUT)
. . . python3 crash . . .
pi@rp:~$
rapport d'erreur syslog:
Jun 1 10:47:40 rp kernel: [ 1160.583861] Program python3 tried to access /dev/mem between 20200000->20201000.
Toute aide est la bienvenue. Tks.