mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-21 06:13:39 +00:00
change from python to python3
This commit is contained in:
parent
5ebbaba6f1
commit
d3da277d4f
15 changed files with 75 additions and 73 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue