change from python to python3

This commit is contained in:
Julian Wöhrer 2022-01-01 23:02:47 +01:00
parent 5ebbaba6f1
commit d3da277d4f
15 changed files with 75 additions and 73 deletions

View file

@ -62,10 +62,10 @@ def siren():
if siren_stopped == True:
pibrella.buzzer.stop()
return True
for x in xrange(-30,30,2):
for x in range(-30,30,2):
pibrella.buzzer.note(x)
time.sleep(0.01)
for x in reversed(xrange(-30,30,2)):
for x in reversed(list(range(-30,30,2))):
pibrella.buzzer.note(x)
time.sleep(0.01)
# start asynchronous siren