This commit is contained in:
Boyan 2022-07-20 19:29:19 +03:00
parent 0c35597360
commit 7f15aa81da

10
main.py
View File

@ -4,14 +4,6 @@ import time
import datetime
import asyncio
def run_in_parallel(*fns):
proc = []
for fn in fns:
p = Process(target=fn)
p.start()
proc.append(p)
for p in proc:
p.join()
PTT_IS_ON = 0
@ -34,4 +26,4 @@ async def ptt():
if __name__ == "__main__":
# button_press(10, pigpio.EITHER_EDGE)
asyncio.run(ptt))
asyncio.run(ptt)