clean output
This commit is contained in:
@@ -21,10 +21,8 @@ while True:
|
|||||||
state = GPIO.input(BUTTON)
|
state = GPIO.input(BUTTON)
|
||||||
|
|
||||||
if state:
|
if state:
|
||||||
print("button: OFF")
|
|
||||||
if audioInstance.isRecording():
|
if audioInstance.isRecording():
|
||||||
audioInstance.stopRecord(play=False)
|
audioInstance.stopRecord(play=False)
|
||||||
else:
|
else:
|
||||||
print("button: ON")
|
|
||||||
if not audioInstance.isRecording():
|
if not audioInstance.isRecording():
|
||||||
audioInstance.startRecord()
|
audioInstance.startRecord()
|
||||||
|
|||||||
Reference in New Issue
Block a user