fixed indent
This commit is contained in:
parent
9c2eb6379b
commit
1bbe4f4086
2
main.py
2
main.py
@ -14,6 +14,7 @@ pi.set_mode(10, pigpio.INPUT)
|
|||||||
|
|
||||||
async def button_press(gpio:int, level) -> bool:
|
async def button_press(gpio:int, level) -> bool:
|
||||||
while True:
|
while True:
|
||||||
|
print("a")
|
||||||
if(pi.read(gpio)!=0):
|
if(pi.read(gpio)!=0):
|
||||||
PTT_IS_ON = 1
|
PTT_IS_ON = 1
|
||||||
if(pi.read(gpio)==0):
|
if(pi.read(gpio)==0):
|
||||||
@ -22,6 +23,7 @@ async def button_press(gpio:int, level) -> bool:
|
|||||||
|
|
||||||
async def ptt():
|
async def ptt():
|
||||||
while True:
|
while True:
|
||||||
|
print("b")
|
||||||
if PTT_IS_ON == 1:
|
if PTT_IS_ON == 1:
|
||||||
print("HEEEEEE")
|
print("HEEEEEE")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user