Änderungen

Aus Linkerkit.de

Wechseln zu: Navigation, Suche

LK-LED10-Blue

280 Byte hinzugefügt, 14:57, 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) sleep(0.5) GPIO.output(led, False) sleep(0.5)</pre>