ich bin neu in der Python-Programmierung und habe mir folgende SW auf meinen WIN10-Rechner installiert:
- Python 3.7
- pyCharm 2019.1.1 Community-Edition
Jetzt habe ich hier einen Pi-Zero liegen und möchte dort die GPIOs ansprechen. Dazu habe ich ein kleines Script geschrieben:
Code: Alles auswählen
import RPi.GPIO as GPIO
import time
# GPIO.setup(16, GPIO.OUT)
for i in range(5):
GPIO.output(16, GPIO.HIGH)
print("AN")
time.sleep(2.0)
GPIO.output(16, GPIO.LOW)
time.sleep(2.0)
print("AUS")
Ich habe nun schon in Erfahrung gebracht, dass ich das Paket (RPi.GPIO) installieren muss. Und da hört es bei mir leider auf. WIE mache ich das genau?Traceback (most recent call last):
File "C:/Users/Homer/PycharmProjects/Test01/Test01.py", line 1, in <module>
import RPi.GPIO as GPIO
ModuleNotFoundError: No module named 'RPi'
Danke und Gruß
Torsten