From b947783acec5f6ee358e32c1f85c9ba012492437 Mon Sep 17 00:00:00 2001 From: Simon Larsson Date: Fri, 13 Aug 2021 18:36:20 +0200 Subject: [PATCH] Add helper for "beeps" command --- pytimex/_helpers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pytimex/_helpers.py b/pytimex/_helpers.py index 03ba478..1488a90 100644 --- a/pytimex/_helpers.py +++ b/pytimex/_helpers.py @@ -254,3 +254,8 @@ def makeALARM(alarm, seq): pkgdata += makepkg([0x70]+data) return bytes(pkgdata) + +def makeBEEPS(hourly=0, button=0): + data = [hourly, button] + + return makepkg([0x71]+data)