Änderungen

Aus Linkerkit.de

Wechseln zu: Navigation, Suche

LK-LED5-Yellow

28 Byte hinzugefügt, 14:41, 19. Okt. 2016
/* Codebeispiel Raspberry */
==Codebeispiel Raspberry==
<pre class="brush: py"> import RPi.GPIO as GPIO
from time import sleep
#Initialisiert LED auf digitalen PIN 4
led = 4
GPIO.setmode(GPIO.BCM)
GPIO.setup(led, GPIO.OUT)
while True
GPIO.output(led, True)
GPIO.output(led, False)
sleep(0.5)
</pre>