summaryrefslogtreecommitdiffstats
path: root/osc_ctrl.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-10-24 23:08:11 -0700
committeryum <yum.food.vr@gmail.com>2022-10-24 23:13:47 -0700
commit0102b725f60c91ca6d095c2b04de71db6d5b1fda (patch)
treec87c84ad4f48577e90307ca2f2bf40baa18b6950 /osc_ctrl.py
parent08655f96dc798e3e129058a5e97c5aa7ff96e798 (diff)
Saying the word "clear" clears the board
While the board is clearing, you can keep talking, and it will be rendered when the board finishes clearing. * bugfix: STT only beeps when it's out
Diffstat (limited to 'osc_ctrl.py')
-rw-r--r--osc_ctrl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/osc_ctrl.py b/osc_ctrl.py
index 4ef238e..4353939 100644
--- a/osc_ctrl.py
+++ b/osc_ctrl.py
@@ -327,8 +327,8 @@ def sendRawMessage(client, msg):
#print("Send cell {}".format(cell))
sendMessageCellDiscrete(client, cell_msg, cell)
-def clear():
- sendRawMessage([state.encoding[' ']] * BOARD_ROWS * BOARD_COLS)
+def clear(client):
+ sendRawMessage(client, [state.encoding[' ']] * BOARD_ROWS * BOARD_COLS)
if __name__ == "__main__":
parser = argparse.ArgumentParser()