Go to advanced search

by kune
Thu Mar 15, 2018 6:42 am
Forum: Deutsch
Topic: Python: Mehrere endlos Schleifen ausführen
Replies: 1
Views: 1309

Python: Mehrere endlos Schleifen ausführen

Hallo, ich arbeite zur Zeit an einem Projekt und habe hierfür eine Funktion geschrieben, mit der man über GPIO eine LED mit verschiedenen Hz und Port angaben blinken lassen kann. Der Code sieht wie folgt aus: #!/usr/bin/python import RPi.GPIO as GPIO import time from threading import Thread GPIO.set...
by kune
Thu Mar 15, 2018 5:52 am
Forum: Python
Topic: multiple infinite loops running the same time
Replies: 2
Views: 763

multiple infinite loops running the same time

Hello, I have a raspi project in which I have to create a function to let a LED blink with different parameters. Here´s the code. #!/usr/bin/python import RPi.GPIO as GPIO import time from threading import Thread GPIO.setmode(GPIO.BOARD) def blink(port, hz): """ function let´s blink LEDs in variable...

Go to advanced search