From 42e91de9ebf666257f5e13c5b2096e7dbf28a02a Mon Sep 17 00:00:00 2001 From: swimIan Date: Sat, 15 Jul 2017 23:04:44 -0700 Subject: [PATCH 1/2] Add two more beeps to the buzzer sound Makes the buzzer notifications more noticeable. --- modules/buzzer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/buzzer/__init__.py b/modules/buzzer/__init__.py index 74a9ec6..b42ad98 100644 --- a/modules/buzzer/__init__.py +++ b/modules/buzzer/__init__.py @@ -9,7 +9,7 @@ except Exception as e: class Buzzer(object): - sound = ["H", 0.1, "L"] + sound = ["H", 0.1, "L", "H", 0.1, "L", "H", 0.1, "L"] def __init__(self, gpio): try: cbpi.app.logger.info("INIT BUZZER NOW GPIO%s" % gpio) From 518a139b5dc47c629eecfd00ca679b3a14ecec3e Mon Sep 17 00:00:00 2001 From: swimIan Date: Sun, 16 Jul 2017 16:12:46 -0700 Subject: [PATCH 2/2] Update __init__.py Added a wait time between the beeps. --- modules/buzzer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/buzzer/__init__.py b/modules/buzzer/__init__.py index b42ad98..5120587 100644 --- a/modules/buzzer/__init__.py +++ b/modules/buzzer/__init__.py @@ -9,7 +9,7 @@ except Exception as e: class Buzzer(object): - sound = ["H", 0.1, "L", "H", 0.1, "L", "H", 0.1, "L"] + sound = ["H", 0.1, "L", 0.1, "H", 0.1, "L", 0.1, "H", 0.1, "L"] def __init__(self, gpio): try: cbpi.app.logger.info("INIT BUZZER NOW GPIO%s" % gpio)