Go to advanced search

by ltb76
Mon Dec 16, 2019 7:14 am
Forum: Python
Topic: Webinterface - FLASK and while loop
Replies: 2
Views: 455

Re: Webinterface - FLASK and while loop

So I got it working. Now the code just needs to be tweaked and cleaned up. Basically I created a baggrund thread to control the traffic light. Bagground thread: #!/usr/bin/python import os from os import path import RPi.GPIO as GPIO import time def threaded_task(traffic): GPIO.setmode(GPIO.BCM) prin...
by ltb76
Thu Dec 12, 2019 1:04 pm
Forum: Python
Topic: Webinterface - FLASK and while loop
Replies: 2
Views: 455

Webinterface - FLASK and while loop

Hi, My kid has been bugging me for a "Traffic light" in his room for a while. So when I stumbled upon an old traffic light on the local flea-market I thought it could be a fun project. I have now hacked it together with a piZero and a relay. Besides a few powershell scripts I'm no programmer - this ...

Go to advanced search