Änderungen

Aus Linkerkit.de

Wechseln zu: Navigation, Suche

LK-Tilt

12 Byte hinzugefügt, 14:56, 19. Okt. 2016
/* Codebeispiel Raspberry */
==Codebeispiel Raspberry==
 
<pre class="brush:py">import RPi.GPIO as GPIO
GPIO.setup(tilt, GPIO.IN, pull_up_down = GPIO.PUD_UP)
while True:</pre>
if GPIO.input(tilt) == GPIO.HIGH:
GPIO.output(led, True)
else:
GPIO.output(led, False)
</pre>
==Downloads==