Hallo,
ich wollte eine LED mit Python zum blinken bringen. Dazu habe ich folgenden Code benutzt:
Python
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
LEDGPIOPin = 14
GPIO.setmode(GPIO.BCM)
GPIO.setwarnigns(False)
GPIO.setup(LEDGPIOPin, GPIO.OUT)
Doch dann kommt immer die Fehlermeldung:
Code
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
GPIO.setup(LEDGPIOPin, GPIO.OUT)
RuntimeError: No access to /dev/mem. Try running as root!
Nur wie kann ich jetzt Python als Root ausführen?
LG Malte