pre ledPWM
This commit is contained in:
parent
0b219d1236
commit
63abdad7dd
@ -16,7 +16,7 @@ C = 523 #Hz
|
|||||||
# If Last Duration is None play last Freq times (negative = infinite)
|
# If Last Duration is None play last Freq times (negative = infinite)
|
||||||
|
|
||||||
BEEP = ((100,1100),)
|
BEEP = ((100,1100),)
|
||||||
BEEPBEEP = ((700,1000),(100,None),(600,1000))
|
BEEPBEEP = ((700,1100),(100,None),(600,1100))
|
||||||
|
|
||||||
# 0: BEEEEP BEEEEP BEEEEEP
|
# 0: BEEEEP BEEEEP BEEEEEP
|
||||||
# 1: Alle Meine Entchen
|
# 1: Alle Meine Entchen
|
||||||
|
2
LED.py
2
LED.py
@ -7,6 +7,8 @@ class LED():
|
|||||||
self.rate = 0
|
self.rate = 0
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.create_task(self._update_async())
|
loop.create_task(self._update_async())
|
||||||
|
self.state = 0
|
||||||
|
self.on = False
|
||||||
|
|
||||||
async def _update_async(self):
|
async def _update_async(self):
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user