pre ledPWM

This commit is contained in:
Nils Schulte 2020-03-23 14:00:45 +01:00
parent 0b219d1236
commit 63abdad7dd
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ C = 523 #Hz
# If Last Duration is None play last Freq times (negative = infinite)
BEEP = ((100,1100),)
BEEPBEEP = ((700,1000),(100,None),(600,1000))
BEEPBEEP = ((700,1100),(100,None),(600,1100))
# 0: BEEEEP BEEEEP BEEEEEP
# 1: Alle Meine Entchen

2
LED.py
View File

@ -7,6 +7,8 @@ class LED():
self.rate = 0
loop = asyncio.get_event_loop()
loop.create_task(self._update_async())
self.state = 0
self.on = False
async def _update_async(self):
while True: