From 8192b77014a3b5d74f8e1b22721423586551b810 Mon Sep 17 00:00:00 2001 From: Blaine Rothrock Date: Wed, 27 Dec 2023 08:54:51 -0500 Subject: [PATCH] default buzz to 1/4 second) --- weallcode_robot/robot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weallcode_robot/robot.py b/weallcode_robot/robot.py index 2434805..267ab76 100644 --- a/weallcode_robot/robot.py +++ b/weallcode_robot/robot.py @@ -104,7 +104,7 @@ def displayDots(self, matrix: list[int], duration: float = 0): def clearDisplay(self): self.commands.append(DisplayDotMatrixCommand()) - def buzz(self, frequency: int, duration: float = 0): + def buzz(self, frequency: int, duration: float = 0.25): self.commands.append(BuzzerCommand(frequency)) self.wait(duration) self.commands.append(BuzzerCommand(0))