cleanup
This commit is contained in:
parent
8e6c23ae03
commit
a367c27c92
2
main.py
2
main.py
@ -21,7 +21,7 @@ async def button_press(gpio:int, level) -> bool:
|
|||||||
asyncio.sleep(.5)
|
asyncio.sleep(.5)
|
||||||
|
|
||||||
async def ptt():
|
async def ptt():
|
||||||
await asyncio.create_task(button_press(10, pigpio.EITHER_EDGE))
|
asyncio.create_task(button_press(10, pigpio.EITHER_EDGE))
|
||||||
while True:
|
while True:
|
||||||
if PTT_IS_ON == 1:
|
if PTT_IS_ON == 1:
|
||||||
print("HEEEEEE")
|
print("HEEEEEE")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user